Class TableRowBuilder.ColumnCollector
java.lang.Object
org.kuali.rice.krad.uif.layout.collections.TableRowBuilder.ColumnCollector
- All Implemented Interfaces:
Serializable
- Enclosing class:
TableRowBuilder
Helper class for collecting columsn that will make up a table row.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnCollector(int actionColumnIndex) Constructor taking the column index for the action column. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given field instance as a column.protected FieldGroupCreates a field group instance that contains the actions for the row.voidShould 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.booleanIndicates whether actions should be rendered based on the collection group configuration.
-
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
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
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
Returns the field instances that make up the row columns.- Returns:
- list of fields
-