Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » tree with exclusive check-box
tree with exclusive check-box [message #463975] Tue, 15 November 2005 22:46 Go to next message
Valerio Schiavoni is currently offline Valerio SchiavoniFriend
Messages: 9
Registered: July 2009
Junior Member
Hello',
i'd like to have a tree with both check-boxes for each item AND to to avoid the possibility to check multiple items (ala radio items). Is this possible?

Also, i'd like that when I select an item of the tree, it doesn't turn into "selected", so that i'm forced to "check" it.

Thanks for any help,
valerio
Re: tree with exclusive check-box [message #463993 is a reply to message #463975] Wed, 16 November 2005 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi Valerio,

(1) to avoid the possibility of multiple items to be checked you can
listen for the check event and when it occurs for an item uncheck all
other items.

(2) To avoid a tree item to be displayed as selected I think is not
possible or at least hard to achieve.

Why do you not simply forget about the check boxes and use the selection
as "check"?

Kind Regards,
Friederich


Valerio wrote:
> Hello',
> i'd like to have a tree with both check-boxes for each item AND to to avoid the possibility to check multiple items (ala radio items). Is this possible?
>
> Also, i'd like that when I select an item of the tree, it doesn't turn into "selected", so that i'm forced to "check" it.
>
> Thanks for any help,
> valerio


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: tree with exclusive check-box [message #464021 is a reply to message #463975] Wed, 16 November 2005 14:48 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 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.

"Valerio" <valerio.schiavoni@gmail.com> wrote in message
news:dldplg$3oo$1@news.eclipse.org...
> Hello',
> i'd like to have a tree with both check-boxes for each item AND to to
> avoid the possibility to check multiple items (ala radio items). Is this
> possible?
>
> Also, i'd like that when I select an item of the tree, it doesn't turn
> into "selected", so that i'm forced to "check" it.
>
> Thanks for any help,
> valerio
Previous Topic:Tree with only top level 'checkable'
Next Topic:Swing in SWT
Goto Forum:
  


Current Time: Fri Apr 26 17:25:30 GMT 2024

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

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

Back to the top