|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.DomElement
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.StyledElement
com.gargoylesoftware.htmlunit.html.ClickableElement
com.gargoylesoftware.htmlunit.html.HtmlTable
public class HtmlTable
Wrapper for the HTML element "table".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.ChildElementsIterator, HtmlElement.MapEntryWrappingIterator |
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary | |
---|---|
static String |
TAG_NAME
the HTML tag represented by this element |
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, TAB_INDEX_OUT_OF_BOUNDS |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
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 Summary | |
---|---|
HtmlTable(HtmlPage page,
Map attributes)
Deprecated. You should not directly construct HtmlTable. |
Method Summary | |
---|---|
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". |
Methods inherited from class com.gargoylesoftware.htmlunit.html.ClickableElement |
---|
click, click, click, dblClick, dblClick, doClickAction, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute, isStateUpdateFirst |
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement |
---|
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute, isRenderedVisible |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TAG_NAME
Constructor Detail |
---|
public HtmlTable(HtmlPage page, Map attributes)
page
- The page that contains this elementattributes
- the initial attributesMethod Detail |
---|
public final HtmlTableCell getCellAt(int rowIndex, int columnIndex)
rowIndex
- The row indexcolumnIndex
- The column index
public List getRows()
getRowIterator()
public HtmlTableRow getRow(int index) throws IndexOutOfBoundsException
index
- the 0-based index of the row
IndexOutOfBoundsException
- 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 row
ElementNotFoundException
- 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()
public final String getBgcolorAttribute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |