HI im working with vaadin,I have a table and im using the addItem Method to add items , what i want to do is at the moment of adding a new item i have to make some tests and set the color of the added row.
For example the resutlt of test is 1 then row color should be Red , and if the result is 2 row color should be green.
So any help how to do this ?
You can do this with a CellStyleGenerator and apply it to all cells in one row. More about CellStyleGenerator here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With