Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree with only top level 'checkable'
Tree with only top level 'checkable' [message #463912] Tue, 15 November 2005 17:10 Go to next message
Keith Smillie is currently offline Keith SmillieFriend
Messages: 3
Registered: July 2009
Junior Member
Hi All,

I'd like to display the following kind of user interface:

X Set A
- Item A
- Item A1
- Item B
X Set B
- Item A
X Set C
- Item B
- Item B1
- Item B2
- Item C

Basically it's a tree *but* only the 'Set A', 'Set B' and 'Set C' items
should have check boxes. All the items should be expandable/collapsable as
normal.

Can anyone suggest how I could do this or perhaps suggest an alternative UI
to a tree?

Regards, Keith
Re: Tree with only top level 'checkable' [message #464019 is a reply to message #463912] Wed, 16 November 2005 14:47 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
One option is to use the image in the first coulmn to draw a checkbox. I
believe this is what JFace does in order to have a checkbox in columns other
than the first column.

See org.eclipse.jface.viewers.CheckboxCellEditor.

"Keith Smillie" <do.not@email.me> wrote in message
news:Xns970FAE3A4131Dfrunobulax@206.191.52.34...
> Hi All,
>
> I'd like to display the following kind of user interface:
>
> X Set A
> - Item A
> - Item A1
> - Item B
> X Set B
> - Item A
> X Set C
> - Item B
> - Item B1
> - Item B2
> - Item C
>
> Basically it's a tree *but* only the 'Set A', 'Set B' and 'Set C' items
> should have check boxes. All the items should be expandable/collapsable as
> normal.
>
> Can anyone suggest how I could do this or perhaps suggest an alternative
> UI
> to a tree?
>
> Regards, Keith
Previous Topic:Is it possible to make a tree item looking different than a Label ?
Next Topic:tree with exclusive check-box
Goto Forum:
  


Current Time: Thu Apr 25 22:35:22 GMT 2024

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

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

Back to the top