public class TableRowBuilder.ColumnCollector extends Object implements Serializable
Constructor and Description |
---|
TableRowBuilder.ColumnCollector(int actionColumnIndex)
Constructor taking the column index for the action column.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Field column)
Adds the given field instance as a column.
|
protected FieldGroup |
buildActionColumn()
Creates a field group instance that contains the actions for the row.
|
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.
|
List<Field> |
getColumns()
Returns the field instances that make up the row columns.
|
boolean |
isRenderActions()
Indicates whether actions should be rendered based on the collection group configuration.
|
public TableRowBuilder.ColumnCollector(int actionColumnIndex)
actionColumnIndex
- index for action columnpublic void addColumn(Field column)
A check is made to see if actions should be rendered at the current position first, then the field is added
column
- field instance to addpublic void finishRow()
protected FieldGroup buildActionColumn()
Field group is created by copying
TableLayoutManager.getActionFieldPrototype()
, then the line
actions from the line context are moved to the field group
public boolean isRenderActions()
public List<Field> getColumns()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.