public void setRowStyles(RowStyles<T> rowStyles)
and
java.lang.String getStyleNames(T row, int rowIndex)
but I do not know how to use it? and the result of the getStyleNames is the css class name? but with this hide the origin style like row
in highlighted?
thanks
// set RowStyles
table.setRowStyles(new RowStyles<Log>(){
@Override
public String getStyleNames(Log row, int rowIndex) {
if (row.getSeverity_cd().equalsIgnoreCase("W ")){
return "warning";
}else if (row.getSeverity_cd().equalsIgnoreCase("C ")){
return "critical";
}else
return null;
}
});
But I still do not know why when I return null in CellTable.setRowsStyles, the default style will be used (although this is what I want)!!