Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RWT styling + Section Widget
RWT styling + Section Widget [message #129465] Wed, 22 April 2009 14:57 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Paul Kendall is currently offline Paul KendallFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:URGENT: CurrentSelectionSourceProvider gets removed (CVS)
Next Topic:[ANN] RAP Incubator Project
Goto Forum:
  


Current Time: Thu Mar 28 22:46:09 GMT 2024

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

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

Back to the top