|
|||||
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.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.MapEntryWrappingIterator |
Field Summary | |
---|---|
static java.lang.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 |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Method Summary | |
---|---|
java.lang.String |
getAlignAttribute()
Return the value of the attribute "align". |
java.lang.String |
getBgcolorAttribute()
Return the value of the attribute "bgcolor". |
java.util.List |
getBodies()
Return a list of tables bodies defined in this table. |
java.lang.String |
getBorderAttribute()
Return the value of the attribute "border". |
java.lang.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. |
java.lang.String |
getCellPaddingAttribute()
Return the value of the attribute "cellpadding". |
java.lang.String |
getCellSpacingAttribute()
Return the value of the attribute "cellspacing". |
HtmlTableFooter |
getFooter()
Return the table footer or null if a footer wasn't specified |
java.lang.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(java.lang.String id)
Find and return the row with the specified id. |
int |
getRowCount()
compute the number of rows in this table. |
java.util.List |
getRows()
|
java.lang.String |
getRulesAttribute()
Return the value of the attribute "rules". |
java.lang.String |
getSummaryAttribute()
Return the value of the attribute "summary". |
java.lang.String |
getWidthAttribute()
Return the value of the attribute "width". |
Methods inherited from class com.gargoylesoftware.htmlunit.html.ClickableElement |
---|
click, click, dblClick, dblClick, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement |
---|
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, appendDomChild, asText, asXml, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeValue, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, replace, setNodeValue, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_NAME
Method Detail |
---|
public final java.lang.String getAlignAttribute()
public final java.lang.String getBgcolorAttribute()
public java.util.List getBodies()
HtmlTableBody
objects.public final java.lang.String getBorderAttribute()
public java.lang.String getCaptionText()
public final HtmlTableCell getCellAt(int rowIndex, int columnIndex)
rowIndex
- The row indexcolumnIndex
- The column index
public final java.lang.String getCellPaddingAttribute()
public final java.lang.String getCellSpacingAttribute()
public HtmlTableFooter getFooter()
public final java.lang.String getFrameAttribute()
public HtmlTableHeader getHeader()
public HtmlTableRow getRow(int index) throws java.lang.IndexOutOfBoundsException
index
- the 0-based index of the row
java.lang.IndexOutOfBoundsException
- if there is no row at the given indexgetRowIterator()
public final HtmlTableRow getRowById(java.lang.String id) throws ElementNotFoundException
id
- The id of the row
ElementNotFoundException
- If the row cannot be found.public final int getRowCount()
public java.util.List getRows()
getRowIterator()
public final java.lang.String getRulesAttribute()
public final java.lang.String getSummaryAttribute()
public final java.lang.String getWidthAttribute()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |