Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to apply a different style to a specific child in a tree ?
How to apply a different style to a specific child in a tree ? [message #467090] Tue, 24 January 2006 16:51 Go to next message
Dov Moryusef is currently offline Dov MoryusefFriend
Messages: 25
Registered: July 2009
Junior Member
Hi to all,

I've a Tree with a root element and childs elements (TreeItem instances)
child1, child2, ....
Is it possible to apply SWT.CHECK style to a specific child (for
example, only to child2 item) ?

Thanks a lot for your help.

Dov
Re: How to apply a different style to a specific child in a tree ? [message #467097 is a reply to message #467090] Tue, 24 January 2006 19:30 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The SWT.CHECK style applies to all rows in the Tree.

The JFace CheckBoxCellEditor uses the image to emulate a check box in
columns other than the first column. You could use this approach to have
check boxes in only some TreeItems.

"Dov MORYUSEF" <moryusef@hotmail.com> wrote in message
news:dr5lu8$hf1$1@utils.eclipse.org...
> Hi to all,
>
> I've a Tree with a root element and childs elements (TreeItem instances)
> child1, child2, ....
> Is it possible to apply SWT.CHECK style to a specific child (for example,
> only to child2 item) ?
>
> Thanks a lot for your help.
>
> Dov
>
>
Re: How to apply a different style to a specific child in a tree ? [message #467107 is a reply to message #467097] Wed, 25 January 2006 10:50 Go to previous message
Dov Moryusef is currently offline Dov MoryusefFriend
Messages: 25
Registered: July 2009
Junior Member
Thanks Veronika.

I will try it ... but I don't find any example of CheckBoxCellEditor
with Tree

Dov

Veronika Irvine a écrit :
> The SWT.CHECK style applies to all rows in the Tree.
>
> The JFace CheckBoxCellEditor uses the image to emulate a check box in
> columns other than the first column. You could use this approach to have
> check boxes in only some TreeItems.
>
> "Dov MORYUSEF" <moryusef@hotmail.com> wrote in message
> news:dr5lu8$hf1$1@utils.eclipse.org...
>
>>Hi to all,
>>
>>I've a Tree with a root element and childs elements (TreeItem instances)
>>child1, child2, ....
>>Is it possible to apply SWT.CHECK style to a specific child (for example,
>>only to child2 item) ?
>>
>>Thanks a lot for your help.
>>
>>Dov
>>
>>
>
>
Previous Topic:Table Scrollbar
Next Topic:Packaging thick client with SWT / JFace
Goto Forum:
  


Current Time: Tue May 21 09:36:17 GMT 2019

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

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

Back to the top