public class TableDataRowColorisers
extends java.lang.Object
TableDataRowColoriser
.Constructor and Description |
---|
TableDataRowColorisers() |
Modifier and Type | Method and Description |
---|---|
static TableDataRowColoriser<java.lang.Object> |
alternatingRows(int color1,
int color2)
Gives an implementation of {link TableDataRowColoriser} that will return alternately the two
given colors.
|
static TableDataRowColoriser<java.lang.Object> |
similarRowColor(int color)
Gives an implementation of {link TableDataRowColoriser} that will return the given color
for every row.
|
public static TableDataRowColoriser<java.lang.Object> similarRowColor(int color)
color
- The color that shall be applied to every table data row.public static TableDataRowColoriser<java.lang.Object> alternatingRows(int color1, int color2)
color1
- The color that will be returned for rows with an even index.color2
- The color that will be returned for rows with an odd index.