Set style for table row

I have seen from old forum posts that there used to be a method Table.setItemStylePropertyId(), which is not present in the Vaadin 6 API. I want to set a style on an entire table row, not the individual table cells through a CellStyleGenerator. The reason is that I want to highlight entire rows with different colours on hover (with a CSS selector like
). Is there a reasonably simple way of doing this?

The CellStyleGenerator generates a style name for the row when the getStyle method is called with null propertyId.

Thanks Henri! And that is of course what the Javadoc says, if you read it carefully enough. Something I obviously didn’t…