Question

I am endeavouring to render some hierarchic data in a TableViewer (the TreeViewer isn't a good fit - trust me on this :-). Consequently I need to render the parent cells with a row-span > 1.

As far as I can tell, this currently isn't possible with the regular JFace TableViewer, or the SWT Table underneath.

Can anyone tell me I'm wrong?

M.

Was it helpful?

Solution

Correct.

You could use a TreeViewer displayed in a "table mode", like illustrated by this class.

alt text http://javawiki.sowas.com/lib/exe/fetch.php?w=&h=&cache=cache&media=swt-jface:jface-columntree.png

However, since a TreeViewer is not an option for you, you could take some idea from the code of TableTree, even though it has been deprecated in eclipse3.3.

alt text
(source: java2s.com)

TableTreeViewer and TableTree are both based on a Table.

OTHER TIPS

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top