Module org.htmlunit

Class HTMLTableRowElement

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HTMLTableRowElement extends HTMLElement
The JavaScript object HTMLTableRowElement.
Author:
Daniel Gredler, Marc Guillemot, Chris Erskine, Ahmed Ashour, Ronald Brill, Frank Danek
See Also:
  • Constructor Details

    • HTMLTableRowElement

      public HTMLTableRowElement()
  • 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 HTMLCollection 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 HtmlUnitScriptable 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
    • getAlign

      public String getAlign()
      Returns the value of the align property.
      Returns:
      the value of the align property
    • setAlign

      public void setAlign(String align)
      Sets the value of the align property.
      Parameters:
      align - the value of the align property
    • getVAlign

      public String getVAlign()
      Returns the value of the vAlign property.
      Returns:
      the value of the vAlign property
    • setVAlign

      public void setVAlign(Object vAlign)
      Sets the value of the vAlign property.
      Parameters:
      vAlign - the value of the vAlign property
    • getCh

      public String getCh()
      Returns the value of the ch property.
      Overrides:
      getCh in class HTMLElement
      Returns:
      the value of the ch property
    • setCh

      public void setCh(String ch)
      Sets the value of the ch property.
      Overrides:
      setCh in class HTMLElement
      Parameters:
      ch - the value of the ch property
    • getChOff

      public String getChOff()
      Returns the value of the chOff property.
      Overrides:
      getChOff in class HTMLElement
      Returns:
      the value of the chOff property
    • setChOff

      public void setChOff(String chOff)
      Sets the value of the chOff property.
      Overrides:
      setChOff in class HTMLElement
      Parameters:
      chOff - the value of the chOff property