NatTable TreeGridExample cell styling [message #931640] |
Wed, 03 October 2012 07:36  |
Eclipse User |
|
|
|
Hi,
I've been working on Nattable's TreeGridExample trying to figure out how to implement some styles on different cells depending on the object value they contain, but I couldn't figure out how to do it. The only snippet available in the other examples that should do what I want to achieve is this:
CellOverrideLabelAccumulator<RowDataFixture> cellLabelAccumulator =
new CellOverrideLabelAccumulator<RowDataFixture>(gridLayer.getBodyDataProvider());
cellLabelAccumulator.registerOverride("AAA", 2, CELL_LABEL);
but it doesn't work. Adding a configuration to nattable doesn't seem to work, either. Even so I don't want my cells to be styled depending on the text value specified in the registerOverrride parameters, but taking it's style color from the object.
Could someone give me some pointers or some snippets?
Thanks, James
|
|
|
|
Powered by
FUDForum. Page generated in 0.03480 seconds