|SWT Tree [message #465461]
||Wed, 14 December 2005 14:00
Registered: July 2009
Hello out there,|
I got a problem with swt tree. I'm trying to write tree that is
representing some business structure stored in a database. As the
structure can be very big, I need the tree to be dynamic, so that I
don't need to read the whole structure out of the db on startup.
So I want the tree to start with a root TreeItem and the direct
Child-TreeItems attached to it (root-tree). Now, when the user expands
one of the TreeItems, I want the Child-Items to be read out of the db
and to be appended to the parent-item. Creating the root-tree is quite
easy, but then the direct child-items aren't expandable, i.e. the
'+'-Symbol isn't there. Does anybody know how that problem can be solved?
I already looked at the snippets on the swt-homepage and there actually
is a snippet that pretends to do something similar using SWT.VIRTUAL.
But when I tried to test it, it didn't work because there is a function
TreeItem.setItemCount(int) used there that doesn't exist...
I hope somebody can help.
Powered by FUDForum
. Page generated in 0.01639 seconds