Class TableRowElement


@TagName("tr") public class TableRowElement extends Element
A row in a table.
See Also:
  • Field Details

  • Constructor Details

    • TableRowElement

      protected TableRowElement()
  • Method Details

    • as

      public static TableRowElement as(Element elem)
      Assert that the given Element is compatible with this class and automatically typecast it.
    • is

      public static boolean is(JavaScriptObject o)
      Determines whether the given JavaScriptObject can be cast to this class. A null object will cause this method to return false.
    • is

      public static boolean is(Node node)
      Determine whether the given Node can be cast to this class. A null node will cause this method to return false.
    • is

      public static boolean is(Element elem)
      Determine whether the given Element can be cast to this class. A null node will cause this method to return false.
    • deleteCell

      public final void deleteCell(int index)
      Delete a cell from the current row.
      See Also:
    • getAlign

      public final String getAlign()
      Horizontal alignment of data within cells of this row.
      See Also:
    • getCells

      public final NodeList<TableCellElement> getCells()
      The collection of cells in this row.
    • getCh

      public final String getCh()
      Alignment character for cells in a column.
      See Also:
    • getChOff

      public final String getChOff()
      Offset of alignment character.
      See Also:
    • getRowIndex

      public final int getRowIndex()
      This is in logical order and not in document order. The rowIndex does take into account sections (THEAD, TFOOT, or TBODY) within the table, placing THEAD rows first in the index, followed by TBODY rows, followed by TFOOT rows.
    • getSectionRowIndex

      public final int getSectionRowIndex()
      The index of this row, relative to the current section (THEAD, TFOOT, or TBODY), starting from 0.
    • getVAlign

      public final String getVAlign()
      Vertical alignment of data within cells of this row.
      See Also:
    • insertCell

      public final TableCellElement insertCell(int index)
      Insert an empty TD cell into this row. If index is -1 or equal to the number of cells, the new cell is appended.
      See Also:
    • setAlign

      public final void setAlign(String align)
      Horizontal alignment of data within cells of this row.
      See Also:
    • setCh

      public final void setCh(String ch)
      Alignment character for cells in a column.
      See Also:
    • setChOff

      public final void setChOff(String chOff)
      Offset of alignment character.
      See Also:
    • setVAlign

      public final void setVAlign(String vAlign)
      Vertical alignment of data within cells of this row.
      See Also: