Class HtmlTableRow

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.Node

    public class HtmlTableRow
    extends HtmlElement
    Wrapper for the HTML element "tr".
    See Also:
    Serialized Form
    • 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

      • getCellIterator

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

        public java.util.List<HtmlTableCell> getCells()
        Returns:
        an immutable list containing all the HtmlTableCells held by this object
        See Also:
        getCellIterator()
      • 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
      • getAlignAttribute

        public final java.lang.String getAlignAttribute()
        Returns 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.
      • getCharAttribute

        public final java.lang.String getCharAttribute()
        Returns 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()
        Returns 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.
      • getValignAttribute

        public final java.lang.String getValignAttribute()
        Returns 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.
      • getEnclosingTable

        public HtmlTable getEnclosingTable()
        Gets the table containing this row.
        Returns:
        the table
      • getBgcolorAttribute

        public final java.lang.String getBgcolorAttribute()
        Returns 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.