Class RowContainer

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
Direct Known Subclasses:
HTMLTableElement, HTMLTableSectionElement

public class RowContainer extends HTMLElement
Superclass for all row-containing JavaScript host classes, including tables, table headers, table bodies and table footers.
See Also:
  • Constructor Details

    • RowContainer

      public RowContainer()
      Creates an instance.
  • Method Details

    • getRows

      public Object getRows()
      Returns the rows in the element.
      Returns:
      the rows in the element
    • isContainedRow

      protected boolean isContainedRow(HtmlTableRow row)
      Indicates if the row belongs to this container.
      Parameters:
      row - the row to test
      Returns:
      true if it belongs to this container
    • deleteRow

      public void deleteRow(int rowIndex)
      Deletes the row at the specified index.
      Parameters:
      rowIndex - the zero-based index of the row to delete
      See Also:
    • insertRow

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

      public Object insertRow(int index)
      Inserts a new row at the given position.
      Parameters:
      index - the index where the row should be inserted (0 <= index <= nbRows)
      Returns:
      the inserted row
    • 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