Class TableRow

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable

public final class TableRow extends PropCnr
The Table Row instance.
Author:
Christopher Mindus
  • Constructor Details

    • TableRow

      public TableRow()
      Creates the container without name with a null value.
    • TableRow

      public TableRow(Atom propertyAtom)
      Creates the container with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • usesPropIndex

      public boolean usesPropIndex()
      Index is important for the row.
      Specified by:
      usesPropIndex in interface IPropCnr
      Overrides:
      usesPropIndex in class PropCnr
      Returns:
      true if index is used, false for non-index based container.
    • shouldSerializeToXML

      protected boolean shouldSerializeToXML(int programType)
      Method used to check for serialization to XML.
      Overrides:
      shouldSerializeToXML in class GProp<GProp<?>[]>
      Parameters:
      programType - From PropFactory.getProgramType(): 0=PropFactory.CLIENT, 1=PropFactory.SERVER or 2=PropFactory.EDITOR.
      Returns:
      false, never to XML!
    • clone

      public TableRow clone()
      Creates a clone out of this property. The cloning is overridden by the subclasses in order to handle cloning of its class variables appropriately.
      Overrides:
      clone in class PropCnr
    • getTable

      public UITable getTable()
      Gets the table instance.
    • getRowIndex

      public int getRowIndex()
      Gets the row index in the table.
      Returns:
      This row's index in the table, or -1 if not added to the table.
    • isSelected

      public boolean isSelected()
      Returns the selection state of the row.
      Returns:
      true if the row is selected, false otherwise.
    • getCells

      public TableCell[] getCells()
      Gets the row cells.
      Returns:
      The cells.