tags:

views:

111

answers:

1

hi, I have created Table using vaadin.Now i want to set font size for particular column content in that table.Is it possible to set font size for particular column in that table?. If so please give me idea to set the font size.If u can provide me some code snippet.

+4  A: 

Yes, with CellStyleGenarators. Check 5.12.2 in the Book of Vaadin. You basically do a

if(propertyId.equals(yourColumnName)) { 
  return "someStyleName";
} 
else {
  return null;
}

inside your Table.CellStyleGenerator() and set the style for your text in css.

Jens Jansson