How to set an individual presentation scheme for Table-Cell,List-Item... [message #140630] |
Fri, 17 July 2009 03:30 |
Eclipse User |
|
|
|
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 |
|
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 |
Eclipse User |
|
|
|
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 #526691 is a reply to message #526585] |
Mon, 12 April 2010 15:05 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.01946 seconds