Class HTMLTableRowElement

All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HTMLTableRowElement extends HTMLTableComponent
The JavaScript object HTMLTableRowElement.
See Also:
  • Constructor Details

    • HTMLTableRowElement

      public HTMLTableRowElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getRowIndex

      public int getRowIndex()
      Returns the index of the row within the parent table.
      Returns:
      the index of the row within the parent table
      See Also:
    • getSectionRowIndex

      public int getSectionRowIndex()
      Returns the index of the row within the enclosing thead, tbody or tfoot.
      Returns:
      the index of the row within the enclosing thead, tbody or tfoot
      See Also:
    • getCells

      public Object getCells()
      Returns the cells in the row.
      Returns:
      the cells in the row
    • getBgColor

      public String getBgColor()
      Returns the value of the bgColor attribute.
      Returns:
      the value of the bgColor attribute
      See Also:
    • setBgColor

      public void setBgColor(String bgColor)
      Sets the value of the bgColor attribute.
      Parameters:
      bgColor - the value of the bgColor attribute
      See Also:
    • insertCell

      public Object insertCell(Object index)
      Inserts a new cell at the specified index in the element's cells collection. If the index is -1 or there is no index specified, then the cell is appended at the end of the element's cells collection.
      Parameters:
      index - specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection
      Returns:
      the newly-created cell
      See Also:
    • deleteCell

      public void deleteCell(Object index)
      Deletes the cell at the specified index in the element's cells collection. If the index is -1, then the last cell is deleted.
      Parameters:
      index - specifies the cell to delete.
      See Also:
    • setOuterHTML

      public void setOuterHTML(Object value)
      Overwritten to throw an exception.
      Overrides:
      setOuterHTML in class Element
      Parameters:
      value - the new value for replacing this node