public class TableRowBuilder extends Object implements Serializable
TableLayoutManager
,
TableRow
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
TableRowBuilder.ColumnCollector
Helper class for collecting columsn that will make up a table row.
|
Constructor and Description |
---|
TableRowBuilder()
Empty Constructor.
|
TableRowBuilder(CollectionGroup collectionGroup,
LineBuilderContext lineBuilderContext)
Constructor taking the collection group instance and context for the line.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addGroupingColumn(TableRowBuilder.ColumnCollector columnCollector)
Adds the grouping column to the given column collector.
|
protected void |
addLineSelectColumn(TableRowBuilder.ColumnCollector columnCollector)
Adds the line select column to the given column collector.
|
protected void |
addSequenceColumn(TableRowBuilder.ColumnCollector columnCollector)
Adds the sequence column to the given column collector.
|
TableRow |
buildRow()
Takes the context given for the line and builds out a table row instance.
|
public TableRowBuilder()
public TableRowBuilder(CollectionGroup collectionGroup, LineBuilderContext lineBuilderContext)
collectionGroup
- collection group the table row is being built forlineBuilderContext
- components and other configuration for the line to buildpublic TableRow buildRow()
The row is built out based on a determined order of special columns (sequence, line selection) and
then each field from the configured items list. Since the placement of the action column is configurable,
it is handled by the TableRowBuilder.ColumnCollector
protected void addSequenceColumn(TableRowBuilder.ColumnCollector columnCollector)
Sequence column is created with a new message component for the add line, and by copying
TableLayoutManager.getSequenceFieldPrototype()
for existing rows.
columnCollector
- object collecting the columns for the rowprotected void addLineSelectColumn(TableRowBuilder.ColumnCollector columnCollector)
The line select column is used to select rows for an action (such as lookup return).
columnCollector
- object collecting the columns for the rowprotected void addGroupingColumn(TableRowBuilder.ColumnCollector columnCollector)
The grouping column is used when table grouping is on to render a header for the group. The data tables plugin will pull the value from this column and render the header row.
columnCollector
- object collecting the columns for the rowCopyright © 2005–2016 The Kuali Foundation. All rights reserved.