Class TableRows

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

public final class TableRows extends PropCnr
The Table Rows container instance.
Author:
Christopher Mindus
  • Field Details

    • EMPTY_ROWS

      public static final TableRow[] EMPTY_ROWS
      Empty array of rows.
    • EMPTY_CELLS

      public static final TCell[] EMPTY_CELLS
      Empty array of cell contents.
  • Constructor Details

    • TableRows

      public TableRows()
      Creates the container without name with a null value.
  • Method Details

    • doPropEqualsArrayValues

      protected boolean doPropEqualsArrayValues()
      Method checking if the property container should do a normal comparison with its contents based on extends framework, atoms, errors, etc.
      Overrides:
      doPropEqualsArrayValues in class PropCnr
      Returns:
      false (default) to perform normal checking, true to compare property values as a plain array container instead.
    • usesPropIndex

      public boolean usesPropIndex()
      Index is important for the rows container.
      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!
    • validateChildPropInValue

      protected void validateChildPropInValue(GProp<?> child) throws PropException
      Validates a single child property instance during the call to PropCnr.validatePropValue(Object). This method does nothing and subclasses may use it to validate e.g. the instance type.

      The method validates that the child is a TableRow instance.

      Overrides:
      validateChildPropInValue in class PropCnr
      Parameters:
      child - The child property to validate.
      Throws:
      PropException - If child is not a TableRow.
    • clone

      public TableRows 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.
    • getRows

      public TableRow[] getRows()
      Gets the rows.
      Returns:
      All rows.