|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.layout.collections.TableRowBuilder
public class TableRowBuilder
Builds out a collection line into a table row. TODO: This have duplicate logic from table layout manager, the goal is to move all logic from the layout manager to this class
TableLayoutManager
,
TableRow
,
Serialized FormNested Class Summary | |
---|---|
class |
TableRowBuilder.ColumnCollector
Helper class for collecting columsn that will make up a table row. |
Constructor Summary | |
---|---|
TableRowBuilder()
Empty Constructor. |
|
TableRowBuilder(CollectionGroup collectionGroup,
LineBuilderContext lineBuilderContext)
Constructor taking the collection group instance and context for the line. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 buildMethod Detail |
---|
public 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 row
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |