Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » BG Color for a PShelfItem
BG Color for a PShelfItem [message #65239] Tue, 30 June 2009 12:54 Go to next message
Santhosh Missing name is currently offline Santhosh Missing nameFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Everyone ,

I am relatively new to SWT and Nebula .

I have a requirement to display multiple composites within a PShelf which
i am able to do with ease .

However , I have another requirement to change the BG Color of the
PShelfItem if a particular threshold is reached .

PShelfItem item1 = new PShelfItem(pshelf,SWT.NONE);
item1.setText("Navigation");

// item1.setBackGround() ## Not available .

IS there a way to change the BG color of a PShelfItem ?

On analyzing, found that color changing prop is available only to PShelf
and a renderer can be set only to a PShelf

Please advice .

Thanks in advance,
Santhosh
Re: BG Color for a PShelfItem [message #65430 is a reply to message #65239] Thu, 09 July 2009 21:38 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to implement your own renderer yes.

Tom

Santhosh schrieb:
> Hi Everyone ,
>
> I am relatively new to SWT and Nebula .
>
> I have a requirement to display multiple composites within a PShelf
> which i am able to do with ease .
>
> However , I have another requirement to change the BG Color of the
> PShelfItem if a particular threshold is reached .
> PShelfItem item1 = new PShelfItem(pshelf,SWT.NONE);
> item1.setText("Navigation");
>
> // item1.setBackGround() ## Not available .
>
> IS there a way to change the BG color of a PShelfItem ?
>
> On analyzing, found that color changing prop is available only to PShelf
> and a renderer can be set only to a PShelf
> Please advice .
>
> Thanks in advance,
> Santhosh
>
Re: BG Color for a PShelfItem [message #65886 is a reply to message #65430] Mon, 20 July 2009 06:48 Go to previous message
Santhosh Missing name is currently offline Santhosh Missing nameFriend
Messages: 12
Registered: July 2009
Junior Member
Could you show an example on how to set the background in our own renderer
which can be used for a PShelfItem ?

Thanks in Advance,
Santhosh
Re: BG Color for a PShelfItem [message #595574 is a reply to message #65239] Thu, 09 July 2009 21:38 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to implement your own renderer yes.

Tom

Santhosh schrieb:
> Hi Everyone ,
>
> I am relatively new to SWT and Nebula .
>
> I have a requirement to display multiple composites within a PShelf
> which i am able to do with ease .
>
> However , I have another requirement to change the BG Color of the
> PShelfItem if a particular threshold is reached .
> PShelfItem item1 = new PShelfItem(pshelf,SWT.NONE);
> item1.setText("Navigation");
>
> // item1.setBackGround() ## Not available .
>
> IS there a way to change the BG color of a PShelfItem ?
>
> On analyzing, found that color changing prop is available only to PShelf
> and a renderer can be set only to a PShelf
> Please advice .
>
> Thanks in advance,
> Santhosh
>
Re: BG Color for a PShelfItem [message #595750 is a reply to message #65430] Mon, 20 July 2009 06:48 Go to previous message
Santhosh Missing name is currently offline Santhosh Missing nameFriend
Messages: 12
Registered: July 2009
Junior Member
Could you show an example on how to set the background in our own renderer
which can be used for a PShelfItem ?

Thanks in Advance,
Santhosh
Previous Topic:How to handle AutoComplete control properly in Grid Cell Editor?
Next Topic:Nebula Newbie
Goto Forum:
  


Current Time: Wed Jul 24 13:40:57 GMT 2024

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

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

Back to the top