Called for every row that is painted in the Table. Returning a
GeneratedRow object will cause the row to be painted based on the
contents of the GeneratedRow. A generated row is by default styled
similarly to a header or footer row.
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.
- Parameters:
table - The Table that is being painted
itemId - The itemId for the row
- Returns:
- A GeneratedRow describing how the row should be painted or null
to paint the row with the contents from the container
|