public class HTMLTableElementImpl extends HTMLElementImpl implements org.w3c.dom.html.HTMLTableElement
HTMLAnchorElement
,
ElementImpl
,
Serialized FormfirstChild, fNodeListCache, ownerDocument
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
ATTRIBUTE_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(HTMLDocumentImpl owner,
java.lang.String name)
Constructor requires owner document.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Node |
cloneNode(boolean deep)
Explicit implementation of cloneNode() to ensure that cache used
for getRows() and getTBodies() gets cleared.
|
org.w3c.dom.html.HTMLElement |
createCaption()
Create a new table caption object or return an existing one.
|
org.w3c.dom.html.HTMLElement |
createTFoot()
Create a table footer row or return an existing one.
|
org.w3c.dom.html.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.
|
org.w3c.dom.html.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 andcell
borders.
|
java.lang.String |
getCellSpacing()
Specifies the horizontal and vertical separation between cells.
|
java.lang.String |
getFrame()
Specifies which external table borders to render.
|
org.w3c.dom.html.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()
Supplementary description about the purpose or structureof a table.
|
org.w3c.dom.html.HTMLCollection |
getTBodies()
Returns a collection of the defined table bodies.
|
org.w3c.dom.html.HTMLTableSectionElement |
getTFoot()
Returns the table's
TFOOT , or null if none
exists. |
org.w3c.dom.html.HTMLTableSectionElement |
getTHead()
Returns the table's
THEAD , or null if none
exists. |
java.lang.String |
getWidth()
Specifies the desired table width.
|
org.w3c.dom.html.HTMLElement |
insertRow(int index)
Insert a new empty row in the table.Note.
|
void |
setAlign(java.lang.String align) |
void |
setBgColor(java.lang.String bgColor) |
void |
setBorder(java.lang.String border) |
void |
setCaption(org.w3c.dom.html.HTMLTableCaptionElement caption) |
void |
setCellPadding(java.lang.String cellPadding) |
void |
setCellSpacing(java.lang.String cellSpacing) |
void |
setFrame(java.lang.String frame) |
void |
setRules(java.lang.String rules) |
void |
setSummary(java.lang.String summary) |
void |
setTFoot(org.w3c.dom.html.HTMLTableSectionElement tFoot) |
void |
setTHead(org.w3c.dom.html.HTMLTableSectionElement tHead) |
void |
setWidth(java.lang.String width) |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, getXMLBaseAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren
getNextSibling, getParentNode, getPreviousSibling
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getLocalName, getNamespaceURI, getNodeNumber, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
appendChild, 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, setUserData
public HTMLTableElementImpl(HTMLDocumentImpl owner, java.lang.String name)
owner
- The owner HTML documentpublic org.w3c.dom.html.HTMLTableCaptionElement getCaption()
org.w3c.dom.html.HTMLTableElement
CAPTION
, or void if none exists.getCaption
in interface org.w3c.dom.html.HTMLTableElement
public void setCaption(org.w3c.dom.html.HTMLTableCaptionElement caption)
setCaption
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLElement createCaption()
org.w3c.dom.html.HTMLTableElement
createCaption
in interface org.w3c.dom.html.HTMLTableElement
CAPTION
element.public void deleteCaption()
org.w3c.dom.html.HTMLTableElement
deleteCaption
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLTableSectionElement getTHead()
org.w3c.dom.html.HTMLTableElement
THEAD
, or null
if none
exists.getTHead
in interface org.w3c.dom.html.HTMLTableElement
public void setTHead(org.w3c.dom.html.HTMLTableSectionElement tHead)
setTHead
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLElement createTHead()
org.w3c.dom.html.HTMLTableElement
createTHead
in interface org.w3c.dom.html.HTMLTableElement
THEAD
).public void deleteTHead()
org.w3c.dom.html.HTMLTableElement
deleteTHead
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLTableSectionElement getTFoot()
org.w3c.dom.html.HTMLTableElement
TFOOT
, or null
if none
exists.getTFoot
in interface org.w3c.dom.html.HTMLTableElement
public void setTFoot(org.w3c.dom.html.HTMLTableSectionElement tFoot)
setTFoot
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLElement createTFoot()
org.w3c.dom.html.HTMLTableElement
createTFoot
in interface org.w3c.dom.html.HTMLTableElement
TFOOT
).public void deleteTFoot()
org.w3c.dom.html.HTMLTableElement
deleteTFoot
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLCollection getRows()
org.w3c.dom.html.HTMLTableElement
THEAD
, TFOOT
, all TBODY
elements.getRows
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLCollection getTBodies()
org.w3c.dom.html.HTMLTableElement
getTBodies
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getAlign()
org.w3c.dom.html.HTMLTableElement
getAlign
in interface org.w3c.dom.html.HTMLTableElement
public void setAlign(java.lang.String align)
setAlign
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getBgColor()
org.w3c.dom.html.HTMLTableElement
getBgColor
in interface org.w3c.dom.html.HTMLTableElement
public void setBgColor(java.lang.String bgColor)
setBgColor
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getBorder()
org.w3c.dom.html.HTMLTableElement
getBorder
in interface org.w3c.dom.html.HTMLTableElement
public void setBorder(java.lang.String border)
setBorder
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getCellPadding()
org.w3c.dom.html.HTMLTableElement
getCellPadding
in interface org.w3c.dom.html.HTMLTableElement
public void setCellPadding(java.lang.String cellPadding)
setCellPadding
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getCellSpacing()
org.w3c.dom.html.HTMLTableElement
getCellSpacing
in interface org.w3c.dom.html.HTMLTableElement
public void setCellSpacing(java.lang.String cellSpacing)
setCellSpacing
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getFrame()
org.w3c.dom.html.HTMLTableElement
getFrame
in interface org.w3c.dom.html.HTMLTableElement
public void setFrame(java.lang.String frame)
setFrame
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getRules()
org.w3c.dom.html.HTMLTableElement
getRules
in interface org.w3c.dom.html.HTMLTableElement
public void setRules(java.lang.String rules)
setRules
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getSummary()
org.w3c.dom.html.HTMLTableElement
getSummary
in interface org.w3c.dom.html.HTMLTableElement
public void setSummary(java.lang.String summary)
setSummary
in interface org.w3c.dom.html.HTMLTableElement
public java.lang.String getWidth()
org.w3c.dom.html.HTMLTableElement
getWidth
in interface org.w3c.dom.html.HTMLTableElement
public void setWidth(java.lang.String width)
setWidth
in interface org.w3c.dom.html.HTMLTableElement
public org.w3c.dom.html.HTMLElement insertRow(int index)
org.w3c.dom.html.HTMLTableElement
insertRow
in interface org.w3c.dom.html.HTMLTableElement
index
- The row number where to insert a new row.public void deleteRow(int index)
org.w3c.dom.html.HTMLTableElement
deleteRow
in interface org.w3c.dom.html.HTMLTableElement
index
- The index of the row to be deleted.public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class org.apache.xerces.dom.ElementImpl
deep
- If true
, recursively clone the subtree under
the specified node; if false
, clone only the node
itself (and its attributes, if it is an Element
).Node.cloneNode(boolean)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.