public class HtmlTable extends ClickableElement
HtmlElement.ChildElementsIterator, HtmlElement.MapEntryWrappingIterator
DomNode.ChildIterator, DomNode.DescendantElementsIterator
Modifier and Type | Field and Description |
---|---|
static String |
TAG_NAME
the HTML tag represented by this element
|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, TAB_INDEX_OUT_OF_BOUNDS
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE
Constructor and Description |
---|
HtmlTable(HtmlPage page,
Map attributes)
Deprecated.
You should not directly construct HtmlTable.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlignAttribute()
Return the value of the attribute "align".
|
String |
getBgcolorAttribute()
Return the value of the attribute "bgcolor".
|
List |
getBodies()
Return a list of tables bodies defined in this table.
|
String |
getBorderAttribute()
Return the value of the attribute "border".
|
String |
getCaptionText()
Return the table caption text or an empty string if a caption wasn't specified
|
HtmlTableCell |
getCellAt(int rowIndex,
int columnIndex)
Return the first cell that matches the specified row and column, searching left to right, top to bottom.
|
String |
getCellPaddingAttribute()
Return the value of the attribute "cellpadding".
|
String |
getCellSpacingAttribute()
Return the value of the attribute "cellspacing".
|
HtmlTableFooter |
getFooter()
Return the table footer or null if a footer wasn't specified
|
String |
getFrameAttribute()
Return the value of the attribute "frame".
|
HtmlTableHeader |
getHeader()
Return the table header or null if a header wasn't specified
|
HtmlTableRow |
getRow(int index) |
HtmlTableRow |
getRowById(String id)
Find and return the row with the specified id.
|
int |
getRowCount()
compute the number of rows in this table.
|
List |
getRows() |
String |
getRulesAttribute()
Return the value of the attribute "rules".
|
String |
getSummaryAttribute()
Return the value of the attribute "summary".
|
String |
getWidthAttribute()
Return the value of the attribute "width".
|
click, click, click, dblClick, dblClick, doClickAction, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute, isStateUpdateFirst
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute, isRenderedVisible
addHtmlAttributeChangeListener, appendChildIfNoneExists, assertNotEmpty, blur, cloneDomNode, cloneNode, fireEvent, fireEvent, fireHtmlAttributeAdded, fireHtmlAttributeRemoved, fireHtmlAttributeReplaced, focus, getAttribute, getAttributeEntriesIterator, getAttributeNS, getAttributeValue, getChildElementsIterator, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getEventHandler, getHtmlElementById, getHtmlElementsByAttribute, getHtmlElementsByTagName, getHtmlElementsByTagNames, getId, getNodeName, getNodeType, getOneHtmlElementByAttribute, getTabIndex, getTagName, hasAttribute, hasAttributeNS, hasAttributes, hasHtmlElementWithId, isAttributeDefined, isEmptyXmlTagExpanded, isSubmittableByEnter, keyDown, keyDown, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, notImplemented, preventDefault, printOpeningTagContentAsXml, printXml, removeAttribute, removeAttributeNS, removeChild, removeEventHandler, removeHtmlAttributeChangeListener, rightClick, rightClick, setAttribute, setAttributeNS, setAttributeValue, setAttributeValue, setEventHandler, setEventHandler, setId, toString, type, type, type, type
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix
addDomChangeListener, addPropertyChangeListener, appendChild, appendDomChild, asText, asXml, fireNodeAdded, fireNodeDeleted, firePropertyChange, getAllHtmlChildElements, getByXPath, getChildIterator, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLog, getNativePage, getNextDomSibling, getNextSibling, getNodeValue, getPage, getParentDomNode, getParentNode, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, isAncestorOf, isTrimmedText, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removePropertyChangeListener, replace, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject
public static final String TAG_NAME
public final HtmlTableCell getCellAt(int rowIndex, int columnIndex)
rowIndex
- The row indexcolumnIndex
- The column indexpublic List getRows()
getRowIterator()
public HtmlTableRow getRow(int index) throws IndexOutOfBoundsException
index
- the 0-based index of the rowIndexOutOfBoundsException
- if there is no row at the given indexgetRowIterator()
public final int getRowCount()
public final HtmlTableRow getRowById(String id) throws ElementNotFoundException
id
- The id of the rowElementNotFoundException
- If the row cannot be found.public String getCaptionText()
public HtmlTableHeader getHeader()
public HtmlTableFooter getFooter()
public List getBodies()
HtmlTableBody
objects.public final String getSummaryAttribute()
public final String getWidthAttribute()
public final String getBorderAttribute()
public final String getFrameAttribute()
public final String getRulesAttribute()
public final String getCellSpacingAttribute()
public final String getCellPaddingAttribute()
public final String getAlignAttribute()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.