RWT styling + Section Widget [message #129465] |
Wed, 22 April 2009 10:57  |
Eclipse User |
|
|
|
Originally posted by: markus.wolf.nmmn.com
Hi there,
I wanted to know if and how the Section widget of eclipse forms is
styleable withing RWT?
I've found no example of how to do so and just adding a 'Section' to our
theme.css seems not to work.
Thanks for any help
Markus Wolf
--
NMMN - New Media Markets & Networks GmbH
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona UStID DE 812 699 852 HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82
http://www.nmmn.com Tel.: +49 40 284 118 -0
Langbehnstrasse 6 Entwicklung: -720
22761 Hamburg Fax: -999
|
|
|
|
|
Re: RWT styling + Section Widget [message #129712 is a reply to message #129560] |
Thu, 23 April 2009 05:33   |
Eclipse User |
|
|
|
Markus Wolf wrote:
> Hi Ralf,
>
>>> I wanted to know if and how the Section widget of eclipse forms is
>>> styleable withing RWT?
>>> I've found no example of how to do so and just adding a 'Section' to our
>>> theme.css seems not to work.
>>
>> The Section widget is not yet themeable. Actually, the only themeable
>> widgets in the Forms plug-in are Hyperlink and FormText.
>>
>> Since the Forms widgets are usually created by FormToolkit, which also
>> applies an initial styling to the widgets, I'm not sure whether theming
>> would be appropriate here. The theming for background color, font, etc.
>> would be overwritten by FormToolkit anyway.
>>
>> What exactly do you try to achieve?
>>
> since we think the section widget is missing some kind of header styling
> (in eclipse SWT it has a background on the title bar) we tried to create
> this within RWT but failed. The styling the FormToolkit offers is not
> enough in this kind of styling, since we could not add a header graphic
> which is at the top of the section and repeats over the horizontal axis.
>
> Maybe this does work when adding a styling data node
> (WidgetUtil.CUSTOM_VARIANT) to the section. But we currently have not
> tried this.
>
> Any idea?
> Markus Wolf
I did some work on this and we've been using it without problems.
There is a patch attached to the following ticket.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213193
The patch does the normal eclipse form heading & section heading
decoration and shading. There are some other methods that need to
be implemented as suggested in the ticket, bit it does go some way
to providing a solution. Note that it uses AWT graphics2d to do
some of the rendering.
Cheers,
Paul
|
|
|
|
|
|
Re: RWT styling + Section Widget [message #129815 is a reply to message #129750] |
Thu, 23 April 2009 09:08   |
Eclipse User |
|
|
|
Hi Markus,
Markus Wolf wrote:
>> The Section widget is not yet themeable. Actually, the only themeable
>> widgets in the Forms plug-in are Hyperlink and FormText.
>>
> is there some documentation on how to implement this? The official
> documentation for RWT/RAP on theming is outdated and I've found no docs
> on howto implement custom theming.
Noone asked for the custom widget theming documentation for some time,
so we put our efforts into other areas. But we will include an updated
help into the 1.2 release.
Anyway, the help that is installed with the RAP tooling is not entirely
out of date. The syntax of the theme.xml files, appearances, and also
the ThemeAdapters has changed (you can use existing RAP code as an
example here), but the steps to follow are basically still the same.
If you have any problems, don't hesitate to ask.
Best regards, Ralf
|
|
|
|
|
Re: RWT styling + Section Widget [message #129938 is a reply to message #129725] |
Thu, 23 April 2009 15:39  |
Eclipse User |
|
|
|
Originally posted by: paul.kendall.orionhealth.com
Markus Wolf wrote:
> Hi Paul,
>
>> I did some work on this and we've been using it without problems.
>> There is a patch attached to the following ticket.
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=213193
>>
>> The patch does the normal eclipse form heading & section heading
>> decoration and shading. There are some other methods that need to
>> be implemented as suggested in the ticket, bit it does go some way
>> to providing a solution. Note that it uses AWT graphics2d to do
>> some of the rendering.
>>
> thanks for that hint, but we run on a headless unix server (and no X
> installed). Therefore we could not use the patch.
> We could install an Xvfb but thats not an option for us.
>
As do we, so we include this system property on startup
-Djava.awt.headless=true
> Thanks
> Markus
Cheers,
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.05099 seconds