public static interface Table.RowGenerator extends Serializable
Modifier and Type | Method and Description |
---|---|
Table.GeneratedRow |
generateRow(Table table,
Object itemId)
Called for every row that is painted in the Table.
|
Table.GeneratedRow generateRow(Table table, Object itemId)
The GeneratedRow data object contains the text that should be rendered in the row. The itemId in the container thus works only as a placeholder.
If GeneratedRow.setSpanColumns(true) is used, there will be one String spanning all columns (use setText("Spanning text")). Otherwise you can define one String per visible column.
If GeneratedRow.setRenderAsHtml(true) is used, the strings can contain HTML markup, otherwise all strings will be rendered as text (the default).
A "v-table-generated-row" CSS class is added to all generated rows. For custom styling of a generated row you can combine a RowGenerator with a CellStyleGenerator.
table
- The Table that is being painteditemId
- The itemId for the rowCopyright © 2019 Vaadin Ltd. All rights reserved.