T - the row data typepublic interface CellTableBuilder<T>
The default implementation used by cell widths is
DefaultCellTableBuilder.
| Modifier and Type | Method and Description |
|---|---|
void |
buildRow(T rowValue,
int absRowIndex)
Build zero or more table rows for the specified row value.
|
TableSectionBuilder |
finish()
Finish the building of rows and return the table section builder.
|
HasCell<T,?> |
getColumn(Cell.Context context,
T rowValue,
Element elem)
Return the column containing an element.
|
java.util.Collection<HasCell<T,?>> |
getColumns()
Return all the columns that this table builder has rendered.
|
int |
getRowValueIndex(TableRowElement row)
Get the index of the primary row from the associated
TableRowElement (an TR element). |
int |
getSubrowValueIndex(TableRowElement row)
Get the index of the subrow value from the associated
TableRowElement (an TR element). |
boolean |
isColumn(Element elem)
Return if an element contains a cell.
|
void |
start(boolean isRebuildingAllRows)
Start building rows.
|
void buildRow(T rowValue, int absRowIndex)
rowValue - the value for the row to renderabsRowIndex - the absolute row indexTableSectionBuilder finish()
HtmlTableSectionBuilder and
its subclasses are supported.HasCell<T,?> getColumn(Cell.Context context, T rowValue, Element elem)
context - the context for the elementrowValue - the value for the row corresponding to the elementelem - the elm that the column containsjava.util.Collection<HasCell<T,?>> getColumns()
int getRowValueIndex(TableRowElement row)
TableRowElement (an TR element).row - the row elementint getSubrowValueIndex(TableRowElement row)
TableRowElement (an TR element). The sub row value starts at 0 for
the first row that represents a row value.row - the row elementboolean isColumn(Element elem)
#getColumn(Context, Object, Element).elem - the element of interestvoid start(boolean isRebuildingAllRows)
isRebuildingAllRows - is this start intended for rebuilding all rows