Wednesday, June 20, 2012

how to set the row color of CellTable based on values in a column

as shown in the attached diagram, there is a column with value 10, 20, 30, 40. I want to  set the row color based on this column value, for example, 10 is white, 20 is  yellow...., any method to do it?

I see there is
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

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-bdDHNy04ssJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate