public class HTMLTableElement extends RowContainer
HTMLElement.ProxyDomNodeBEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGEATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
HTMLTableElement() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createCaption()
If this table does not have a caption, this method creates an empty table caption,
adds it to the table and then returns it.
|
Object |
createTFoot()
If this table does not have a tfoot element, this method creates an empty tfoot
element, adds it to the table and then returns it.
|
Object |
createTHead()
If this table does not have a thead element, this method creates an empty
thead element, adds it to the table and then returns it.
|
void |
deleteCaption()
Deletes this table's caption.
|
void |
deleteTFoot()
Deletes this table's tfoot element.
|
void |
deleteTHead()
Deletes this table's thead element.
|
String |
getBgColor()
Returns the value of the bgColor attribute.
|
String |
getBorder()
Gets the border attribute.
|
Object |
getCaption()
Returns the table's caption element, or null if none exists.
|
String |
getCellPadding()
Returns the cellPadding attribute.
|
String |
getCellSpacing()
Returns the cellSpacing attribute.
|
Object |
getTBodies()
Returns the tbody's in the table.
|
Object |
getTFoot()
Returns the table's tfoot element, or null if none exists.
|
Object |
getTHead()
Returns the table's thead element, or null if none exists.
|
String |
getWidth_js()
Returns the width attribute.
|
Object |
insertRow(int index)
Handle special case where table is empty.
|
protected boolean |
isContainedRow(HtmlTableRow row)
Indicates if the row belongs to this container.
|
void |
refresh()
Refreshes the content of this table.
|
void |
setBgColor(String bgColor)
Sets the value of the bgColor attribute.
|
void |
setBorder(String border)
Sets the border attribute.
|
void |
setCaption(Object o)
Sets the caption.
|
void |
setCellPadding(String cellPadding)
Sets the cellPadding attribute.
|
void |
setCellSpacing(String cellSpacing)
Sets the cellSpacing attribute.
|
void |
setInnerHTML(Object value)
Overwritten to throw an exception in IE8/9.
|
protected void |
setInnerTextImpl(String value)
Overwritten to throw an exception because this is readonly.
|
void |
setTFoot(Object o)
Sets the tFoot.
|
void |
setTHead(Object o)
Sets the tHead.
|
void |
setWidth(String width)
Sets the width attribute.
|
deleteRow, getAlign, getRows, insertRow, moveRow, setAlignaddBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, createEventHandler, createTextRange, dispatchEvent, doComponentRequest, doScroll, fixAttributeName, focus, get, getAccessKey, getAlign, getAll, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBoxObject, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDocument, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getFilters, getHeight, getId, getInnerHTML, getInnerText, getJavaEnabled, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnchange, getOnsubmit, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getScopeName, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSpellcheck, getSystemLanguage, getTabIndex, getTagUrn, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isAttributeName, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, querySelector, querySelectorAll, readAttributes, removeAttributeNode, removeBehavior, removeExpression, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCh, setChOff, setClassName, setColorAttribute, setDir, setDisabled, setDomNode, setExpression, setHomePage, setId, setInnerText, setLang, setLanguage, setOnchange, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringcreateAttributesObject, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, getText, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNode, setAttributeNS, setDefaultsfireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresizeaddEventListener, appendChild, asJavaScriptException, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, executeEvent, fireEvent, fireEvent, getBaseName, getChildNodes, getEventHandler, getEventHandlerProp, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, hasEventHandlers, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, removeEventListener, replaceChild, setEventHandler, setEventHandlerProp, setNodeValueclone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, sizepublic Object getCaption()
public void setCaption(Object o)
o - the captionpublic Object getTFoot()
public void setTFoot(Object o)
o - the tFootpublic Object getTHead()
public void setTHead(Object o)
o - the tHeadpublic Object getTBodies()
public Object createCaption()
public Object createTFoot()
public Object createTHead()
public void deleteCaption()
public void deleteTFoot()
public void deleteTHead()
public void refresh()
protected boolean isContainedRow(HtmlTableRow row)
isContainedRow in class RowContainerrow - the row to testtrue if it belongs to this containerpublic Object insertRow(int index)
insertRow in class RowContainerindex - the index where the row should be inserted (0 <= index <= nbRows)public String getWidth_js()
public void setWidth(String width)
width - the width attributepublic String getCellSpacing()
public void setCellSpacing(String cellSpacing)
cellSpacing - the cellSpacing attributepublic String getCellPadding()
public void setCellPadding(String cellPadding)
cellPadding - the cellPadding attributepublic String getBorder()
public void setBorder(String border)
border - the border attributepublic String getBgColor()
public void setBgColor(String bgColor)
bgColor - the value of the bgColor attributepublic void setInnerHTML(Object value)
setInnerHTML in class HTMLElementvalue - the new value for the contents of this nodeprotected void setInnerTextImpl(String value)
setInnerTextImpl in class HTMLElementvalue - the new value for the contents of this nodeCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.