Class HTMLTableRowElement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • HTMLTableRowElement

        public HTMLTableRowElement()
        Creates an instance.
    • Method Detail

      • 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:
        MSDN Documentation
      • 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:
        MSDN Documentation, DOM Level 1
      • getCells

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

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

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

        public java.lang.Object insertCell​(java.lang.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:
        MSDN Documentation
      • deleteCell

        public void deleteCell​(java.lang.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:
        MSDN Documentation, W3C DOM Level2
      • setOuterHTML

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