Package org.lobobrowser.html.domimpl
Class HTMLTableElementImpl
java.lang.Object
org.lobobrowser.js.AbstractScriptableDelegate
org.lobobrowser.html.domimpl.NodeImpl
org.lobobrowser.html.domimpl.ElementImpl
org.lobobrowser.html.domimpl.HTMLElementImpl
org.lobobrowser.html.domimpl.HTMLAbstractUIElement
org.lobobrowser.html.domimpl.HTMLTableElementImpl
- All Implemented Interfaces:
ModelNode
,CSS2PropertiesContext
,ScriptableDelegate
,Element
,HTMLElement
,HTMLTableElement
,Node
-
Field Summary
Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl
attributes
Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
Fields inherited from interface org.w3c.dom.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a new table caption object or return an existing one.protected RenderState
createRenderState
(RenderState prevRenderState) Create a table footer row or return an existing one.Create a table header row or return an existing one.void
Delete the table caption, if one exists.void
deleteRow
(int index) Delete a table row.void
Delete the footer from the table, if one exists.void
Delete the header from the table, if one exists.getAlign()
Specifies the table's position with respect to the rest of the document.Cell background color.The width of the border around the table.Returns the table'sCAPTION
, or void if none exists.Specifies the horizontal and vertical space between cell content and cell borders.Specifies the horizontal and vertical separation between cells.getFrame()
Specifies which external table borders to render.getHeightLength
(int availHeight) getRows()
Returns a collection of all the rows in the table, including all inTHEAD
,TFOOT
, allTBODY
elements.getRules()
Specifies which internal table borders to render.Description about the purpose or structure of a table.Returns a collection of the table bodies (including implicit ones).getTFoot()
Returns the table'sTFOOT
, ornull
if none exists.getTHead()
Returns the table'sTHEAD
, ornull
if none exists.getWidth()
Specifies the desired table width.getWidthLength
(int availWidth) insertRow
(int index) Inserts a row at the index given.void
Specifies the table's position with respect to the rest of the document.void
setBgColor
(String bgColor) Cell background color.void
The width of the border around the table.void
setCaption
(HTMLTableCaptionElement caption) Returns the table'sCAPTION
, or void if none exists.void
setCellPadding
(String cellPadding) Specifies the horizontal and vertical space between cell content and cell borders.void
setCellSpacing
(String cellSpacing) Specifies the horizontal and vertical separation between cells.void
Specifies which external table borders to render.void
Specifies which internal table borders to render.void
setSummary
(String summary) Description about the purpose or structure of a table.void
setTFoot
(HTMLTableSectionElement tFoot) Returns the table'sTFOOT
, ornull
if none exists.void
setTHead
(HTMLTableSectionElement tHead) Returns the table'sTHEAD
, ornull
if none exists.void
Specifies the desired table width.Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement
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
Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl
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
Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl
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
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
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
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.lobobrowser.html.style.CSS2PropertiesContext
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
Methods inherited from interface org.w3c.dom.html2.HTMLElement
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
Methods inherited from interface org.w3c.dom.Node
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
-
Constructor Details
-
HTMLTableElementImpl
public HTMLTableElementImpl() -
HTMLTableElementImpl
-
-
Method Details
-
getCaption
Description copied from interface:HTMLTableElement
Returns the table'sCAPTION
, or void if none exists.- Specified by:
getCaption
in interfaceHTMLTableElement
-
setCaption
Description copied from interface:HTMLTableElement
Returns the table'sCAPTION
, or void if none exists.- Specified by:
setCaption
in interfaceHTMLTableElement
- Throws:
DOMException
- HIERARCHY_REQUEST_ERR: if the element is not aCAPTION
.
-
getTHead
Description copied from interface:HTMLTableElement
Returns the table'sTHEAD
, ornull
if none exists.- Specified by:
getTHead
in interfaceHTMLTableElement
-
setTHead
Description copied from interface:HTMLTableElement
Returns the table'sTHEAD
, ornull
if none exists.- Specified by:
setTHead
in interfaceHTMLTableElement
- Throws:
DOMException
- HIERARCHY_REQUEST_ERR: if the element is not aTHEAD
.
-
getTFoot
Description copied from interface:HTMLTableElement
Returns the table'sTFOOT
, ornull
if none exists.- Specified by:
getTFoot
in interfaceHTMLTableElement
-
setTFoot
Description copied from interface:HTMLTableElement
Returns the table'sTFOOT
, ornull
if none exists.- Specified by:
setTFoot
in interfaceHTMLTableElement
- Throws:
DOMException
- HIERARCHY_REQUEST_ERR: if the element is not aTFOOT
.
-
getRows
Description copied from interface:HTMLTableElement
Returns a collection of all the rows in the table, including all inTHEAD
,TFOOT
, allTBODY
elements.- Specified by:
getRows
in interfaceHTMLTableElement
-
getTBodies
Description copied from interface:HTMLTableElement
Returns a collection of the table bodies (including implicit ones).- Specified by:
getTBodies
in interfaceHTMLTableElement
-
getAlign
Description copied from interface:HTMLTableElement
Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.- Specified by:
getAlign
in interfaceHTMLTableElement
-
setAlign
Description copied from interface:HTMLTableElement
Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.- Specified by:
setAlign
in interfaceHTMLTableElement
-
getBgColor
Description copied from interface:HTMLTableElement
Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.- Specified by:
getBgColor
in interfaceHTMLTableElement
-
setBgColor
Description copied from interface:HTMLTableElement
Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.- Specified by:
setBgColor
in interfaceHTMLTableElement
-
getBorder
Description copied from interface:HTMLTableElement
The width of the border around the table. See the border attribute definition in HTML 4.01.- Specified by:
getBorder
in interfaceHTMLTableElement
-
setBorder
Description copied from interface:HTMLTableElement
The width of the border around the table. See the border attribute definition in HTML 4.01.- Specified by:
setBorder
in interfaceHTMLTableElement
-
getCellPadding
Description copied from interface:HTMLTableElement
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.01.- Specified by:
getCellPadding
in interfaceHTMLTableElement
-
setCellPadding
Description copied from interface:HTMLTableElement
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.01.- Specified by:
setCellPadding
in interfaceHTMLTableElement
-
getCellSpacing
Description copied from interface:HTMLTableElement
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.01.- Specified by:
getCellSpacing
in interfaceHTMLTableElement
-
setCellSpacing
Description copied from interface:HTMLTableElement
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.01.- Specified by:
setCellSpacing
in interfaceHTMLTableElement
-
getFrame
Description copied from interface:HTMLTableElement
Specifies which external table borders to render. See the frame attribute definition in HTML 4.01.- Specified by:
getFrame
in interfaceHTMLTableElement
-
setFrame
Description copied from interface:HTMLTableElement
Specifies which external table borders to render. See the frame attribute definition in HTML 4.01.- Specified by:
setFrame
in interfaceHTMLTableElement
-
getRules
Description copied from interface:HTMLTableElement
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.01.- Specified by:
getRules
in interfaceHTMLTableElement
-
setRules
Description copied from interface:HTMLTableElement
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.01.- Specified by:
setRules
in interfaceHTMLTableElement
-
getSummary
Description copied from interface:HTMLTableElement
Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.01.- Specified by:
getSummary
in interfaceHTMLTableElement
-
setSummary
Description copied from interface:HTMLTableElement
Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.01.- Specified by:
setSummary
in interfaceHTMLTableElement
-
getWidth
Description copied from interface:HTMLTableElement
Specifies the desired table width. See the width attribute definition in HTML 4.01.- Specified by:
getWidth
in interfaceHTMLTableElement
-
setWidth
Description copied from interface:HTMLTableElement
Specifies the desired table width. See the width attribute definition in HTML 4.01.- Specified by:
setWidth
in interfaceHTMLTableElement
-
getHeightLength
-
getWidthLength
-
createTHead
Description copied from interface:HTMLTableElement
Create a table header row or return an existing one.- Specified by:
createTHead
in interfaceHTMLTableElement
- Returns:
- A new table header element (
THEAD
).
-
deleteTHead
public void deleteTHead()Description copied from interface:HTMLTableElement
Delete the header from the table, if one exists.- Specified by:
deleteTHead
in interfaceHTMLTableElement
-
createTFoot
Description copied from interface:HTMLTableElement
Create a table footer row or return an existing one.- Specified by:
createTFoot
in interfaceHTMLTableElement
- Returns:
- A footer element (
TFOOT
).
-
deleteTFoot
public void deleteTFoot()Description copied from interface:HTMLTableElement
Delete the footer from the table, if one exists.- Specified by:
deleteTFoot
in interfaceHTMLTableElement
-
createCaption
Description copied from interface:HTMLTableElement
Create a new table caption object or return an existing one.- Specified by:
createCaption
in interfaceHTMLTableElement
- Returns:
- A
CAPTION
element.
-
deleteCaption
public void deleteCaption()Description copied from interface:HTMLTableElement
Delete the table caption, if one exists.- Specified by:
deleteCaption
in interfaceHTMLTableElement
-
insertRow
Inserts a row at the index given. Ifindex
is-1
, the row is appended as the last row.- Specified by:
insertRow
in interfaceHTMLTableElement
- Parameters:
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.- Returns:
- The newly created row.
- Throws:
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.
-
deleteRow
Description copied from interface:HTMLTableElement
Delete a table row.- Specified by:
deleteRow
in interfaceHTMLTableElement
- Parameters:
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.- Throws:
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.
-
createRenderState
- Overrides:
createRenderState
in classHTMLElementImpl
-