RWT styling + Section Widget [message #129465] |
Wed, 22 April 2009 14: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 #129526 is a reply to message #129465] |
Wed, 22 April 2009 19:04 |
|
Hi Markus,
Markus Wolf wrote:
> 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?
Best regrads,
Ralf
|
|
|
Re: RWT styling + Section Widget [message #129560 is a reply to message #129526] |
Thu, 23 April 2009 08:12 |
Eclipse User |
|
|
|
Originally posted by: markus.wolf.nmmn.com
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
--
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 09:33 |
Paul Kendall Messages: 40 Registered: July 2009 |
Member |
|
|
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 #129725 is a reply to message #129712] |
Thu, 23 April 2009 09:39 |
Eclipse User |
|
|
|
Originally posted by: markus.wolf.nmmn.com
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.
Thanks
Markus
--
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 #129738 is a reply to message #129560] |
Thu, 23 April 2009 09:47 |
Eclipse User |
|
|
|
Originally posted by: markus.wolf.nmmn.com
> Maybe this does work when adding a styling data node
> (WidgetUtil.CUSTOM_VARIANT) to the section. But we currently have not
> tried this.
>
No it does not work. It seems that the Section widget get no styling
besides the methods from the api. :/
Markus
--
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 #129750 is a reply to message #129526] |
Thu, 23 April 2009 10:03 |
Eclipse User |
|
|
|
Originally posted by: markus.wolf.nmmn.com
Hi Ralf,
> 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.
Thanks
Markus
--
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 #129815 is a reply to message #129750] |
Thu, 23 April 2009 13:08 |
|
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 #129828 is a reply to message #129560] |
Thu, 23 April 2009 13:12 |
|
Markus,
> 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.
does this bug cover your problems: 213193: [Forms] Section
setTitleBarBackground
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213193
If not, please open an enhancement request and list the themeable
properties that you miss. Maybe also a screenshot of the problem.
Best regards, Ralf
|
|
|
Re: RWT styling + Section Widget [message #129878 is a reply to message #129815] |
Thu, 23 April 2009 13:46 |
Eclipse User |
|
|
|
Originally posted by: markus.wolf.nmmn.com
> 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.
>
I'll try to create some styling code for the section. Thanks for your
help :)
I'll sure ask if I can't go on for some reason.
(And basically the bug you mentioned in the other response cover our needs)
Regards
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 #129938 is a reply to message #129725] |
Thu, 23 April 2009 19: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.05395 seconds