Class TableRowBuilder.ColumnCollector

java.lang.Object
org.kuali.rice.krad.uif.layout.collections.TableRowBuilder.ColumnCollector
All Implemented Interfaces:
Serializable
Enclosing class:
TableRowBuilder

public class TableRowBuilder.ColumnCollector extends Object implements Serializable
Helper class for collecting columsn that will make up a table row.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnCollector(int actionColumnIndex)
    Constructor taking the column index for the action column.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addColumn(Field column)
    Adds the given field instance as a column.
    protected FieldGroup
    Creates a field group instance that contains the actions for the row.
    void
    Should be invoked after there are no more columns to add, so that the action column can be added when it is configured to be the last column.
    Returns the field instances that make up the row columns.
    boolean
    Indicates whether actions should be rendered based on the collection group configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ColumnCollector

      public ColumnCollector(int actionColumnIndex)
      Constructor taking the column index for the action column.
      Parameters:
      actionColumnIndex - index for action column
  • Method Details

    • addColumn

      public void addColumn(Field column)
      Adds the given field instance as a column.

      A check is made to see if actions should be rendered at the current position first, then the field is added

      Parameters:
      column - field instance to add
    • finishRow

      public void finishRow()
      Should be invoked after there are no more columns to add, so that the action column can be added when it is configured to be the last column.
    • buildActionColumn

      protected FieldGroup buildActionColumn()
      Creates a field group instance that contains the actions for the row.

      Field group is created by copying TableLayoutManager.getActionFieldPrototype(), then the line actions from the line context are moved to the field group

      Returns:
      field group instance containing the actions
    • isRenderActions

      public boolean isRenderActions()
      Indicates whether actions should be rendered based on the collection group configuration.
      Returns:
      boolean true if actions should be rendered, false if not
    • getColumns

      public List<Field> getColumns()
      Returns the field instances that make up the row columns.
      Returns:
      list of fields