org.lobobrowser.html.domimpl
public class HTMLTableElementImpl extends HTMLAbstractUIElement implements HTMLTableElement
attributes
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
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() |
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, setOnmouseup
addStyleSheetDeclarations, 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, warn
createSimilarNode, 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, setTitle
appendChild, 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, setUserData
getScriptable, setScriptable
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, 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, setUserData
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid
public HTMLTableElementImpl()
public HTMLTableElementImpl(java.lang.String name)
public HTMLTableCaptionElement getCaption()
HTMLTableElement
CAPTION
, or void if none exists.getCaption
in interface HTMLTableElement
public void setCaption(HTMLTableCaptionElement caption) throws org.w3c.dom.DOMException
HTMLTableElement
CAPTION
, or void if none exists.setCaption
in interface HTMLTableElement
org.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR: if the element is not a CAPTION
.public HTMLTableSectionElement getTHead()
HTMLTableElement
THEAD
, or null
if none
exists.getTHead
in interface HTMLTableElement
public void setTHead(HTMLTableSectionElement tHead) throws org.w3c.dom.DOMException
HTMLTableElement
THEAD
, or null
if none
exists.setTHead
in interface HTMLTableElement
org.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR: if the element is not a THEAD
.public HTMLTableSectionElement getTFoot()
HTMLTableElement
TFOOT
, or null
if none
exists.getTFoot
in interface HTMLTableElement
public void setTFoot(HTMLTableSectionElement tFoot) throws org.w3c.dom.DOMException
HTMLTableElement
TFOOT
, or null
if none
exists.setTFoot
in interface HTMLTableElement
org.w3c.dom.DOMException
- HIERARCHY_REQUEST_ERR: if the element is not a TFOOT
.public HTMLCollection getRows()
HTMLTableElement
THEAD
, TFOOT
, all TBODY
elements.getRows
in interface HTMLTableElement
public HTMLCollection getTBodies()
HTMLTableElement
getTBodies
in interface HTMLTableElement
public java.lang.String getAlign()
HTMLTableElement
getAlign
in interface HTMLTableElement
public void setAlign(java.lang.String align)
HTMLTableElement
setAlign
in interface HTMLTableElement
public java.lang.String getBgColor()
HTMLTableElement
getBgColor
in interface HTMLTableElement
public void setBgColor(java.lang.String bgColor)
HTMLTableElement
setBgColor
in interface HTMLTableElement
public java.lang.String getBorder()
HTMLTableElement
getBorder
in interface HTMLTableElement
public void setBorder(java.lang.String border)
HTMLTableElement
setBorder
in interface HTMLTableElement
public java.lang.String getCellPadding()
HTMLTableElement
getCellPadding
in interface HTMLTableElement
public void setCellPadding(java.lang.String cellPadding)
HTMLTableElement
setCellPadding
in interface HTMLTableElement
public java.lang.String getCellSpacing()
HTMLTableElement
getCellSpacing
in interface HTMLTableElement
public void setCellSpacing(java.lang.String cellSpacing)
HTMLTableElement
setCellSpacing
in interface HTMLTableElement
public java.lang.String getFrame()
HTMLTableElement
getFrame
in interface HTMLTableElement
public void setFrame(java.lang.String frame)
HTMLTableElement
setFrame
in interface HTMLTableElement
public java.lang.String getRules()
HTMLTableElement
getRules
in interface HTMLTableElement
public void setRules(java.lang.String rules)
HTMLTableElement
setRules
in interface HTMLTableElement
public java.lang.String getSummary()
HTMLTableElement
getSummary
in interface HTMLTableElement
public void setSummary(java.lang.String summary)
HTMLTableElement
setSummary
in interface HTMLTableElement
public java.lang.String getWidth()
HTMLTableElement
getWidth
in interface HTMLTableElement
public void setWidth(java.lang.String width)
HTMLTableElement
setWidth
in interface HTMLTableElement
public HtmlLength getHeightLength(int availHeight)
public HtmlLength getWidthLength(int availWidth)
public HTMLElement createTHead()
HTMLTableElement
createTHead
in interface HTMLTableElement
THEAD
).public void deleteTHead()
HTMLTableElement
deleteTHead
in interface HTMLTableElement
public HTMLElement createTFoot()
HTMLTableElement
createTFoot
in interface HTMLTableElement
TFOOT
).public void deleteTFoot()
HTMLTableElement
deleteTFoot
in interface HTMLTableElement
public HTMLElement createCaption()
HTMLTableElement
createCaption
in interface HTMLTableElement
CAPTION
element.public void deleteCaption()
HTMLTableElement
deleteCaption
in interface HTMLTableElement
public HTMLElement insertRow(int index) throws org.w3c.dom.DOMException
index
is -1
,
the row is appended as the last row.insertRow
in interface HTMLTableElement
index
- 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
HTMLTableElement
deleteRow
in interface HTMLTableElement
index
- 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