How to set a font size for a particular column in Vaadin Table?

advertisements

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.


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.