Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree with Multiple Columns - Renderer
Tree with Multiple Columns - Renderer [message #465781] Tue, 20 December 2005 13:24 Go to next message
Martin is currently offline MartinFriend
Messages: 35
Registered: July 2009
Member
Hi everybody,

i have the following problem:
I have a tree with multiple columns to display some data. All my columns
are simple "text fields". Now, what i want is that the last item in the
tree renders as a combobox in one column instead of a normal text field.
But i don't want the whole column to render as comboboxes, only a "single
cell".
Also i don't want it like a normal TreeEditor to appear only when the cell
is edited, but rather show it all the time as a combobox.
Is there some convenient way to achieve this in SWT?

Thanks
Martin
Re: Tree with Multiple Columns - Renderer [message #811876 is a reply to message #465781] Fri, 02 March 2012 23:29 Go to previous messageGo to next message
Marc Jolibois is currently offline Marc JoliboisFriend
Messages: 2
Registered: March 2012
Junior Member
Did you ever receive an answer to this question??
I have the same problem. I need to display data in a tree with 3 columns, each with different controls (textboxes, checkboxes and dropdown list). So that for example row 1 will have: textbox, checkbox, textbox. Row 2 will have: dropdown list, checkbox, textbox.

I can not use a TreeViewer because the Tree will be displayed in an Editor object so I am stuck with the regular SWT Tree.

Searching the web I have found two examples: One with multi-columns (only works with Strings) and other for placing control objects over a tree (only works for the first column)

Can anyone explain how can I have a multicolumn tree with controls all over it? or If not, What will be the best SWT object to use??

Regards

Marc Christian
Re: Tree with Multiple Columns - Renderer [message #811893 is a reply to message #811876] Fri, 02 March 2012 23:59 Go to previous message
Marc Jolibois is currently offline Marc JoliboisFriend
Messages: 2
Registered: March 2012
Junior Member
Never Mind. I have seen the method:

void setEditor(Control editor, TreeItem item, int column)
Specify the Control that is to be displayed and the cell in the tree that it is to be positioned above.

This should work just fine.

Thanks !
Previous Topic:WANTED: Table content changed event
Next Topic:Text control + VerifyListener => Undo broken?
Goto Forum:
  


Current Time: Fri Dec 19 10:07:07 GMT 2014

Powered by FUDForum. Page generated in 0.01770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software