public class HTMLTableElement extends RowContainer
HTMLTableElement.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()
Creates an instance.
|
| 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. |
String |
getBorderColor()
Gets the
borderColor attribute. |
String |
getBorderColorDark()
Gets the
borderColor attribute. |
String |
getBorderColorLight()
Gets the
borderColor 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. |
String |
getInnerText()
Gets the innerText 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 |
setBgColor(String bgColor)
Sets the value of the
bgColor attribute. |
void |
setBorder(String border)
Sets the
border attribute. |
void |
setBorderColor(String borderColor)
Sets the
borderColor attribute. |
void |
setBorderColorDark(String borderColor)
Sets the
borderColor attribute. |
void |
setBorderColorLight(String borderColor)
Sets the
borderColor 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 |
setInnerText(Object value)
Replaces all child elements of this element with the supplied text value.
|
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, createTextRange, doComponentRequest, focus, getAccessKey, getAlign, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getContentEditable, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getHeight, getId, getInnerHTML, getIsContentEditable, getJavaEnabled, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnchange, getOnsubmit, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSpellcheck, getSystemLanguage, getTabIndex, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, readAttributes, releaseCapture, removeAttributeNode, removeBehavior, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setHomePage, setId, setInnerHTML, setInnerTextImpl, setLang, setLanguage, setOnchange, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringcreateAttributesObject, createEventHandler, get, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, hasAttributeNS, querySelector, querySelectorAll, removeAttribute, removeAttributeNS, setAttributeNode, setAttributeNS, setDefaultsfireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOninput, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOninput, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresizeappendChild, asJavaScriptException, cloneNode, compareDocumentPosition, contains, detachEvent, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, remove, removeChild, replaceChild, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerPropclone, equivalentValues, getBrowserVersion, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, 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, getExternalArrayData, getExternalArrayLength, 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, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic Object getCaption()
null if none exists. If more than one
caption is declared in the table, this method returns the first one.public void setCaption(Object o)
o - the captionpublic Object getTFoot()
null if none exists. If more than one
tfoot is declared in the table, this method returns the first one.public void setTFoot(Object o)
o - the tFootpublic Object getTHead()
null if none exists. If more than one
thead is declared in the table, this method returns the first one.public void setTHead(Object o)
tHead.o - the tHeadpublic Object getTBodies()
public Object createCaption()
public Object createTFoot()
public Object createTHead()
public void deleteCaption()
public void deleteTFoot()
public void deleteTHead()
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()
width attribute.width attributepublic void setWidth(String width)
width attribute.width - the width attributepublic String getCellSpacing()
cellSpacing attribute.cellSpacing attributepublic void setCellSpacing(String cellSpacing)
cellSpacing attribute.cellSpacing - the cellSpacing attributepublic String getCellPadding()
cellPadding attribute.cellPadding attributepublic void setCellPadding(String cellPadding)
cellPadding attribute.cellPadding - the cellPadding attributepublic String getBorder()
border attribute.border attributepublic void setBorder(String border)
border attribute.border - the border attributepublic String getBgColor()
bgColor attribute.bgColor attributepublic void setBgColor(String bgColor)
bgColor attribute.bgColor - the value of the bgColor attributepublic String getBorderColor()
borderColor attribute.public void setBorderColor(String borderColor)
borderColor attribute.borderColor - the new attributepublic String getBorderColorDark()
borderColor attribute.public void setBorderColorDark(String borderColor)
borderColor attribute.borderColor - the new attributepublic String getBorderColorLight()
borderColor attribute.public void setBorderColorLight(String borderColor)
borderColor attribute.borderColor - the new attributepublic void setInnerText(Object value)
setInnerText in class HTMLElementvalue - the new value for the contents of this elementpublic String getInnerText()
getInnerText in class HTMLElementCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.