Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to set an individual presentation scheme for Table-Cell,List-Item...
How to set an individual presentation scheme for Table-Cell,List-Item... [message #140630] Fri, 17 July 2009 03:30 Go to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi,
It's possible to apply an individual presentation scheme to particular
widgets,uses the "Widget Variants" described in RWT Theming of RAP
Developer Guide.

In my application, I need to set an individual presentation scheme for
Table-Cell and List-Item in JFace TableViewer.is it possible or no? If yes,
please give me some hints.

Best Regards,
Cheney
Re: How to set an individual presentation scheme for Table-Cell,List-Item... [message #140674 is a reply to message #140630] Sun, 19 July 2009 10:37 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Cheney,

Cheney wrote:
> It's possible to apply an individual presentation scheme to particular
> widgets,uses the "Widget Variants" described in RWT Theming of RAP
> Developer Guide.
>
> In my application, I need to set an individual presentation scheme for
> Table-Cell and List-Item in JFace TableViewer.is it possible or no? If yes,
> please give me some hints.

RAP does not set any custom variants to identify widgets used by JFace.
If you want to do so, you can set the variant on the viewer's control
like this:

viewer.getControl().setData( WidgetUtil.CUSTOM_VARIANT, "myVariant" );

Is this what you're looking for?

Best regards, Ralf
Re: How to set an individual presentation scheme for Table-Cell,List-Item... [message #140728 is a reply to message #140674] Mon, 20 July 2009 07:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi Ralf,

Yes,I have tried what you said:set the variant on the viewer's control in my
code. And in the theme file,I set the item attributes like this:
TableItem.myVariant:selected{
 color: white;
 background-color: #ff0000;
}

or

Table-Cell.myVariant{
 color: #ff0000;
 background-gradient-color: #fb8006;
 padding: 0px;
 background-color: #ff0000;
}

But both of them have no effect.

is there any other way to archive my purpose?

Thanks,
Cheney

Ralf Sternberg wrote:

> Hi Cheney,
>
> Cheney wrote:
>> It's possible to apply an individual presentation scheme to particular
>> widgets,uses the "Widget Variants" described in RWT Theming of RAP
>> Developer Guide.
>>
>> In my application, I need to set an individual presentation scheme for
>> Table-Cell and List-Item in JFace TableViewer.is it possible or no? If
>> yes, please give me some hints.
>
> RAP does not set any custom variants to identify widgets used by JFace.
> If you want to do so, you can set the variant on the viewer's control
> like this:
>
> viewer.getControl().setData( WidgetUtil.CUSTOM_VARIANT, "myVariant" );
>
> Is this what you're looking for?
>
> Best regards, Ralf
Re: How to set an individual presentation scheme for Table-Cell,List-Item... [message #526585 is a reply to message #140728] Mon, 12 April 2010 11:16 Go to previous messageGo to next message
Seb  is currently offline Seb Friend
Messages: 1
Registered: April 2010
Junior Member
Could anyone answer that question please? I'm also facing the same issue.
Re: How to set an individual presentation scheme for Table-Cell,List-Item... [message #526691 is a reply to message #526585] Mon, 12 April 2010 15:05 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

I'm sorry to say, but Custom Variants on TableItems are currently not
supported on the client. There is no way to change the colors for items
and selected items Table-wide using a custom variant. If you need such a
feature, please file a bug and outline your use case, then we can think
about the options.

Best regards, Ralf

Seb wrote:
> Could anyone answer that question please? I'm also facing the same issue.
Previous Topic:Unable to access class from required plugin dependency
Next Topic:Startup work in Code
Goto Forum:
  


Current Time: Thu Apr 18 06:36:42 GMT 2024

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

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

Back to the top