org.lobobrowser.html.domimpl

Class HTMLTableRowElementImpl

Implemented Interfaces:
Element, CSS2PropertiesContext, HTMLElement, HTMLTableRowElement, Node, ModelNode, ScriptableDelegate

public class HTMLTableRowElementImpl
extends HTMLElementImpl
implements HTMLTableRowElement

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

Constructor Summary

HTMLTableRowElementImpl()
HTMLTableRowElementImpl(String name)

Method Summary

void
deleteCell(int index)
Delete a cell from the current row.
String
getAlign()
Horizontal alignment of data within cells of this row.
String
getBgColor()
Background color for rows.
HTMLCollection
getCells()
The collection of cells in this row.
String
getCh()
Alignment character for cells in a column.
String
getChOff()
Offset of alignment character.
int
getRowIndex()
This is in logical order and not in document order.
int
getSectionRowIndex()
The index of this row, relative to the current section ( THEAD, TFOOT, or TBODY), starting from 0.
String
getVAlign()
Vertical alignment of data within cells of this row.
HTMLElement
insertCell(int index)
Insert an empty TD cell into this row.
void
setAlign(String align)
Horizontal alignment of data within cells of this row.
void
setBgColor(String bgColor)
Background color for rows.
void
setCh(String ch)
Alignment character for cells in a column.
void
setChOff(String chOff)
Offset of alignment character.
void
setVAlign(String vAlign)
Vertical alignment of data within cells of this row.

Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl

addStyleSheetDeclarations, appendInnerHTMLImpl, appendOuterHTMLImpl, assignAttributeField, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getCssInputSourceForDecl, getCurrentStyle, getFormInputs, getInnerHTML, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParentStyle, getStyle, informInvalid, informInvalidAttibute, informLayoutInvalid, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn

Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl

appendInnerTextImpl, assignAttributeField, createSimilarNode, equalAttributes, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getInnerText, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeImpl, setAttributeNS, setAttributeNode, setAttributeNodeNS, setDir, setId, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setInnerText, setLang, setNodeValue, setTitle, toString

Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl

appendChild, cloneNode, compareDocumentPosition, createRenderState, createSimilarNode, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeList, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasAttributes, hasChildNodes, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setNodeValue, setPrefix, setTextContent, setUINode, setUserData, toString, warn, warn

Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate

getScriptable, setScriptable

Constructor Details

HTMLTableRowElementImpl

public HTMLTableRowElementImpl()

HTMLTableRowElementImpl

public HTMLTableRowElementImpl(String name)

Method Details

deleteCell

public void deleteCell(int index)
            throws DOMException
Delete a cell from the current row.
Specified by:
deleteCell in interface HTMLTableRowElement
Parameters:
index - The index of the cell to delete, starting from 0. If the index is -1 the last cell in the row is deleted.
Version:
DOM Level 2

getAlign

public String getAlign()
Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.01.
Specified by:
getAlign in interface HTMLTableRowElement

getBgColor

public String getBgColor()
Background color for rows. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Specified by:
getBgColor in interface HTMLTableRowElement

getCells

public HTMLCollection getCells()
The collection of cells in this row.
Specified by:
getCells in interface HTMLTableRowElement
Version:
DOM Level 2

getCh

public String getCh()
Alignment character for cells in a column. See the char attribute definition in HTML 4.01.
Specified by:
getCh in interface HTMLTableRowElement

getChOff

public String getChOff()
Offset of alignment character. See the charoff attribute definition in HTML 4.01.
Specified by:
getChOff in interface HTMLTableRowElement

getRowIndex

public int getRowIndex()
This is in logical order and not in document order. The rowIndex does take into account sections ( THEAD, TFOOT, or TBODY) within the table, placing THEAD rows first in the index, followed by TBODY rows, followed by TFOOT rows.
Specified by:
getRowIndex in interface HTMLTableRowElement
Version:
DOM Level 2

getSectionRowIndex

public int getSectionRowIndex()
The index of this row, relative to the current section ( THEAD, TFOOT, or TBODY), starting from 0.
Specified by:
getSectionRowIndex in interface HTMLTableRowElement
Version:
DOM Level 2

getVAlign

public String getVAlign()
Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.01.
Specified by:
getVAlign in interface HTMLTableRowElement

insertCell

public HTMLElement insertCell(int index)
            throws DOMException
Insert an empty TD cell into this row. If index is -1 or equal to the number of cells, the new cell is appended.
Specified by:
insertCell in interface HTMLTableRowElement
Parameters:
index - The place to insert the cell, starting from 0.
Returns:
The newly created cell.
Version:
DOM Level 2

setAlign

public void setAlign(String align)
Horizontal alignment of data within cells of this row. See the align attribute definition in HTML 4.01.
Specified by:
setAlign in interface HTMLTableRowElement

setBgColor

public void setBgColor(String bgColor)
Background color for rows. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
Specified by:
setBgColor in interface HTMLTableRowElement

setCh

public void setCh(String ch)
Alignment character for cells in a column. See the char attribute definition in HTML 4.01.
Specified by:
setCh in interface HTMLTableRowElement

setChOff

public void setChOff(String chOff)
Offset of alignment character. See the charoff attribute definition in HTML 4.01.
Specified by:
setChOff in interface HTMLTableRowElement

setVAlign

public void setVAlign(String vAlign)
Vertical alignment of data within cells of this row. See the valign attribute definition in HTML 4.01.
Specified by:
setVAlign in interface HTMLTableRowElement