public class HTMLTableElementImpl extends HTMLAbstractUIElement implements HTMLTableElement
attributesdocument, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNodeATTRIBUTE_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 |
|---|
HTMLTableElementImpl() |
HTMLTableElementImpl(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
HTMLElement |
createCaption()
Create a new table caption object or return an existing one.
|
protected RenderState |
createRenderState(RenderState prevRenderState) |
HTMLElement |
createTFoot()
Create a table footer row or return an existing one.
|
HTMLElement |
createTHead()
Create a table header row or return an existing one.
|
void |
deleteCaption()
Delete the table caption, if one exists.
|
void |
deleteRow(int index)
Delete a table row.
|
void |
deleteTFoot()
Delete the footer from the table, if one exists.
|
void |
deleteTHead()
Delete the header from the table, if one exists.
|
java.lang.String |
getAlign()
Specifies the table's position with respect to the rest of the
document.
|
java.lang.String |
getBgColor()
Cell background color.
|
java.lang.String |
getBorder()
The width of the border around the table.
|
HTMLTableCaptionElement |
getCaption()
Returns the table's
CAPTION, or void if none exists. |
java.lang.String |
getCellPadding()
Specifies the horizontal and vertical space between cell content and
cell borders.
|
java.lang.String |
getCellSpacing()
Specifies the horizontal and vertical separation between cells.
|
java.lang.String |
getFrame()
Specifies which external table borders to render.
|
HtmlLength |
getHeightLength(int availHeight) |
HTMLCollection |
getRows()
Returns a collection of all the rows in the table, including all in
THEAD, TFOOT, all TBODY
elements. |
java.lang.String |
getRules()
Specifies which internal table borders to render.
|
java.lang.String |
getSummary()
Description about the purpose or structure of a table.
|
HTMLCollection |
getTBodies()
Returns a collection of the table bodies (including implicit ones).
|
HTMLTableSectionElement |
getTFoot()
Returns the table's
TFOOT, or null if none
exists. |
HTMLTableSectionElement |
getTHead()
Returns the table's
THEAD, or null if none
exists. |
java.lang.String |
getWidth()
Specifies the desired table width.
|
HtmlLength |
getWidthLength(int availWidth) |
HTMLElement |
insertRow(int index)
Inserts a row at the index given.
|
void |
setAlign(java.lang.String align)
Specifies the table's position with respect to the rest of the
document.
|
void |
setBgColor(java.lang.String bgColor)
Cell background color.
|
void |
setBorder(java.lang.String border)
The width of the border around the table.
|
void |
setCaption(HTMLTableCaptionElement caption)
Returns the table's
CAPTION, or void if none exists. |
void |
setCellPadding(java.lang.String cellPadding)
Specifies the horizontal and vertical space between cell content and
cell borders.
|
void |
setCellSpacing(java.lang.String cellSpacing)
Specifies the horizontal and vertical separation between cells.
|
void |
setFrame(java.lang.String frame)
Specifies which external table borders to render.
|
void |
setRules(java.lang.String rules)
Specifies which internal table borders to render.
|
void |
setSummary(java.lang.String summary)
Description about the purpose or structure of a table.
|
void |
setTFoot(HTMLTableSectionElement tFoot)
Returns the table's
TFOOT, or null if none
exists. |
void |
setTHead(HTMLTableSectionElement tHead)
Returns the table's
THEAD, or null if none
exists. |
void |
setWidth(java.lang.String width)
Specifies the desired table width.
|
assignAttributeField, blur, focus, getEventFunction, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseupaddStyleSheetDeclarations, appendOuterHTMLImpl, createDefaultStyleSheet, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getComputedStyle, getCssInputSourceForDecl, getCurrentStyle, getDocumentBaseURI, getFormInputs, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParent, getParentStyle, getParentWithClass, getParentWithId, getPreceedingSibling, getPreceedingSiblingElement, getPreceedingSiblingWithClass, getPreceedingSiblingWithId, getPseudoNames, getStyle, informInvalid, informInvalidAttibute, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warncreateSimilarNode, equalAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, htmlEncodeChildText, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeImpl, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDir, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerText, setLang, setNodeValue, setTitleappendChild, appendInnerHTMLImpl, appendInnerTextImpl, cloneNode, compareDocumentPosition, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasChildNodes, informDocumentInvalid, informExternalScriptLoading, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setPrefix, setTextContent, setUINode, setUserDatagetScriptable, setScriptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitlegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatainformLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalidpublic HTMLTableElementImpl()
public HTMLTableElementImpl(java.lang.String name)
public HTMLTableCaptionElement getCaption()
HTMLTableElementCAPTION, or void if none exists.getCaption in interface HTMLTableElementpublic void setCaption(HTMLTableCaptionElement caption) throws org.w3c.dom.DOMException
HTMLTableElementCAPTION, or void if none exists.setCaption in interface HTMLTableElementorg.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: if the element is not a CAPTION.public HTMLTableSectionElement getTHead()
HTMLTableElementTHEAD, or null if none
exists.getTHead in interface HTMLTableElementpublic void setTHead(HTMLTableSectionElement tHead) throws org.w3c.dom.DOMException
HTMLTableElementTHEAD, or null if none
exists.setTHead in interface HTMLTableElementorg.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: if the element is not a THEAD.public HTMLTableSectionElement getTFoot()
HTMLTableElementTFOOT, or null if none
exists.getTFoot in interface HTMLTableElementpublic void setTFoot(HTMLTableSectionElement tFoot) throws org.w3c.dom.DOMException
HTMLTableElementTFOOT, or null if none
exists.setTFoot in interface HTMLTableElementorg.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: if the element is not a TFOOT.public HTMLCollection getRows()
HTMLTableElementTHEAD, TFOOT, all TBODY
elements.getRows in interface HTMLTableElementpublic HTMLCollection getTBodies()
HTMLTableElementgetTBodies in interface HTMLTableElementpublic java.lang.String getAlign()
HTMLTableElementgetAlign in interface HTMLTableElementpublic void setAlign(java.lang.String align)
HTMLTableElementsetAlign in interface HTMLTableElementpublic java.lang.String getBgColor()
HTMLTableElementgetBgColor in interface HTMLTableElementpublic void setBgColor(java.lang.String bgColor)
HTMLTableElementsetBgColor in interface HTMLTableElementpublic java.lang.String getBorder()
HTMLTableElementgetBorder in interface HTMLTableElementpublic void setBorder(java.lang.String border)
HTMLTableElementsetBorder in interface HTMLTableElementpublic java.lang.String getCellPadding()
HTMLTableElementgetCellPadding in interface HTMLTableElementpublic void setCellPadding(java.lang.String cellPadding)
HTMLTableElementsetCellPadding in interface HTMLTableElementpublic java.lang.String getCellSpacing()
HTMLTableElementgetCellSpacing in interface HTMLTableElementpublic void setCellSpacing(java.lang.String cellSpacing)
HTMLTableElementsetCellSpacing in interface HTMLTableElementpublic java.lang.String getFrame()
HTMLTableElementgetFrame in interface HTMLTableElementpublic void setFrame(java.lang.String frame)
HTMLTableElementsetFrame in interface HTMLTableElementpublic java.lang.String getRules()
HTMLTableElementgetRules in interface HTMLTableElementpublic void setRules(java.lang.String rules)
HTMLTableElementsetRules in interface HTMLTableElementpublic java.lang.String getSummary()
HTMLTableElementgetSummary in interface HTMLTableElementpublic void setSummary(java.lang.String summary)
HTMLTableElementsetSummary in interface HTMLTableElementpublic java.lang.String getWidth()
HTMLTableElementgetWidth in interface HTMLTableElementpublic void setWidth(java.lang.String width)
HTMLTableElementsetWidth in interface HTMLTableElementpublic HtmlLength getHeightLength(int availHeight)
public HtmlLength getWidthLength(int availWidth)
public HTMLElement createTHead()
HTMLTableElementcreateTHead in interface HTMLTableElementTHEAD).public void deleteTHead()
HTMLTableElementdeleteTHead in interface HTMLTableElementpublic HTMLElement createTFoot()
HTMLTableElementcreateTFoot in interface HTMLTableElementTFOOT).public void deleteTFoot()
HTMLTableElementdeleteTFoot in interface HTMLTableElementpublic HTMLElement createCaption()
HTMLTableElementcreateCaption in interface HTMLTableElementCAPTION element.public void deleteCaption()
HTMLTableElementdeleteCaption in interface HTMLTableElementpublic HTMLElement insertRow(int index) throws org.w3c.dom.DOMException
index is -1,
the row is appended as the last row.insertRow in interface HTMLTableElementindex - The row number where to insert a new row. This index
starts from 0 and is relative to the logical order (not document
order) of all the rows contained inside the table.org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified index is greater than the
number of rows or if the index is a negative number other than -1.public void deleteRow(int index)
throws org.w3c.dom.DOMException
HTMLTableElementdeleteRow in interface HTMLTableElementindex - The index of the row to be deleted. This index starts
from 0 and is relative to the logical order (not document order) of
all the rows contained inside the table. If the index is -1 the
last row in the table is deleted.org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified index is greater than or
equal to the number of rows or if the index is a negative number
other than -1.protected RenderState createRenderState(RenderState prevRenderState)
createRenderState in class HTMLElementImpl