| How can I associate custom widgets with TreeItems in SWT? [message #1095823] |
Tue, 27 August 2013 11:27  |
Stefan C Messages: 2 Registered: August 2013 |
Junior Member |
|
|
I have created a custom widget--an SWT Group that consists of several buttons, labels, images and perhaps several other widgets I might need to add in the future. I would like to make this custom widget a tree item, so that I can get the indentation and the expand/collapse functionality of a tree.
Here is an example that shows what I am trying to achieve. This example was created with GWT.

The SWT TreeItem has methods to set the text and the image, but I could not find a way to make the tree item be a custom widget. If there it is not possible to associate custom widgets with SWT tree items, suggestions about other ways to organize custom widgets in a tree with indentation and expand/collapse functionality would be very helpful too. Thanks!
Stef
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01605 seconds