com.gargoylesoftware.htmlunit.html
Class HtmlTableRow

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.DomNode
      extended by com.gargoylesoftware.htmlunit.html.DomNamespaceNode
          extended by com.gargoylesoftware.htmlunit.html.HtmlElement
              extended by com.gargoylesoftware.htmlunit.html.StyledElement
                  extended by com.gargoylesoftware.htmlunit.html.ClickableElement
                      extended by com.gargoylesoftware.htmlunit.html.HtmlTableRow
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class HtmlTableRow
extends ClickableElement

Wrapper for the html element "tr"

Version:
$Revision: 1.3 $
Author:
Mike Bowler, David K. Taylor, Christian Sell, Ahmed Ashour
See Also:
Serialized Form

Nested Class Summary
 class HtmlTableRow.CellIterator
 an Iterator over the HtmlTableCells contained in this row.
 
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".
 HtmlTableCell getCell(int index)
  
 HtmlTableRow.CellIterator getCellIterator()
  
 java.util.List getCells()
  
 java.lang.String getCharAttribute()
 Return the value of the attribute "char".
 java.lang.String getCharoffAttribute()
 Return the value of the attribute "charoff".
 HtmlTable getEnclosingTable()
 Gets the table containing this row
 java.lang.String getValignAttribute()
 Return the value of the attribute "valign".
 
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.HtmlElement
addHtmlAttributeChangeListener, appendChildIfNoneExists, cloneDomNode, fireEvent, fireEvent, getAttributeEntriesIterator, getAttributeValue, getChildElementsIterator, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getEventHandler, getHtmlElementById, getHtmlElementsByAttribute, getHtmlElementsByTagName, getHtmlElementsByTagNames, getId, getNodeName, getNodeType, getOneHtmlElementByAttribute, getTagName, hasHtmlElementWithId, isAttributeDefined, keyDown, keyDown, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, removeAttribute, removeChild, removeEventHandler, removeHtmlAttributeChangeListener, rightClick, rightClick, setAttributeValue, setEventHandler, setEventHandler, setId, toString
 
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

TAG_NAME

public static final java.lang.String TAG_NAME
the HTML tag represented by this element

See Also:
Constant Field Values
Method Detail

getAlignAttribute

public final java.lang.String getAlignAttribute()
Return the value of the attribute "align". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "align" or an empty string if that attribute isn't defined.

getBgcolorAttribute

public final java.lang.String getBgcolorAttribute()
Return the value of the attribute "bgcolor". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "bgcolor" or an empty string if that attribute isn't defined.

getCell

public HtmlTableCell getCell(int index)
                      throws java.lang.IndexOutOfBoundsException
Parameters:
index - the 0-based index
Returns:
the cell at the given index
Throws:
java.lang.IndexOutOfBoundsException - if there is no cell at the given index

getCellIterator

public HtmlTableRow.CellIterator getCellIterator()
Returns:
an Iterator over the all HtmlTableCell objects in this row

getCells

public java.util.List getCells()
Returns:
an immutable list containing all the HtmlTableCells held by this object
See Also:
getCellIterator()

getCharAttribute

public final java.lang.String getCharAttribute()
Return the value of the attribute "char". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "char" or an empty string if that attribute isn't defined.

getCharoffAttribute

public final java.lang.String getCharoffAttribute()
Return the value of the attribute "charoff". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "charoff" or an empty string if that attribute isn't defined.

getEnclosingTable

public HtmlTable getEnclosingTable()
Gets the table containing this row

Returns:
the table

getValignAttribute

public final java.lang.String getValignAttribute()
Return the value of the attribute "valign". Refer to the HTML 4.01 documentation for details on the use of this attribute.

Returns:
The value of the attribute "valign" or an empty string if that attribute isn't defined.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.