Decorate icons with text in NatTable Treehttps://www.eclipse.org/forums/index.php/mv/msg/460587/1020620/#msg_1020620
I tried rendering images/icons along with text for NatTable tree using the ImagePainter with Decorator. However it either displayes only icons or does not display anything at all.

My requirement is to display different icons based on different values for the row. I have noticed one limitation, the call back to render images only works on the given cell only. however the icons to be rendered is based on the value of the different cell.

for example, the icons shold be diplayed in first column (render country flag). However the condition based on which the value is to be displayed in in 5th column (country name).

How can we accomplish the same using NatTable. Do you have any such example?

Thanks,
Sunil

]]>Sunil Jakkaraju2013-03-18T15:24:18-00:00Re: Decorate icons with text in NatTable Treehttps://www.eclipse.org/forums/index.php/mv/msg/460587/1021280/#msg_1021280
usually I decorate text with an icon and not vice versa.
You can have a look at TreeGridWithCheckBoxFieldsExample which shows how to add checkboxes to the left of text in a tree. That should be similar to what you are trying to do.

Configuring icons regarding values in other columns is possible. You just need to create an IConfigLabelAccumulator that knows about the IDataProvider and attach labels regarding values in other columns. I think the examples which I created for my articles contain something similar. At least there I add labels to all cells in a row regarding a value in one column. You can find the links to the examples here: http://eclipse.org/nattable/documentation.php?page=articles

Note that the examples where created using the Sourceforge versions of NatTable (prior to the Eclipse move). So they won't compile unless you update the import statements.