Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Setting theme in RAP client-side widget
Setting theme in RAP client-side widget [message #102962] Fri, 22 August 2008 15:19 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

In RAP client-side widget I find many calls to method 'setAppearance'. I
know this method is supposed to set the theme of the widget which is
defined in AppearancesBase.js, but I'm unable to find where
'setAppearance' method is defined, not even in the widget's superclasses.

Any help would be greatly appreciated.


Regards,

Setya
Re: Setting theme in RAP client-side widget [message #102985 is a reply to message #102962] Fri, 22 August 2008 19:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Setya,

Setya wrote:
> In RAP client-side widget I find many calls to method 'setAppearance'. I
> know this method is supposed to set the theme of the widget which is
> defined in AppearancesBase.js, but I'm unable to find where
> 'setAppearance' method is defined, not even in the widget's superclasses.
>
> Any help would be greatly appreciated.

The method does not set the theme, but the appearance of a Widget (or a
part of it). The appearance contains all dynamically changeable,
style-relevant properties.

The function is defined on Widget, see
http://demo.qooxdoo.org/0.7.3/apiviewer/#qx.ui.core.Widget~s etAppearance

Regards,
Ralf
Re: Setting theme in RAP client-side widget [message #103114 is a reply to message #102985] Tue, 26 August 2008 08:26 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

> The method does not set the theme, but the appearance of a Widget (or a
> part of it). The appearance contains all dynamically changeable,
> style-relevant properties.

> The function is defined on Widget, see
> http://demo.qooxdoo.org/0.7.3/apiviewer/#qx.ui.core.Widget~s etAppearance

Thanks for your explanation.

I'm trying to fix Bug#232510 where Toolbar created via FormToolkit doesn't
have its background color set to the same colour the container where it
lives.

Upon inspecting AppearancesBase.js we need to give more condition about
how the Toolbar was created (via FormToolkit or not) and act accordingly.
Is it possible to obtain this information via the passed 'states'
parameter ?

Any help would be greatly appreciated.

Best Regards,

Setya
Re: Setting theme in RAP client-side widget [message #103174 is a reply to message #103114] Tue, 26 August 2008 15:15 Go to previous message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Setya,

Setya wrote:
> I'm trying to fix Bug#232510 where Toolbar created via FormToolkit
> doesn't have its background color set to the same colour the container
> where it lives.
> Upon inspecting AppearancesBase.js we need to give more condition about
> how the Toolbar was created (via FormToolkit or not) and act
> accordingly. Is it possible to obtain this information via the passed
> 'states' parameter ?

I think the problem is that Toolbar#setBackground does not affect the
ToolItems in RWT. It shouldn't be necessary to change the appearance.
See my comment on the bug above.

I'm sorry, but the chances that we can fix it this week are low.

Best regards, Ralf
Previous Topic:Will RAP work in a load-balanced system?
Next Topic:Optimization/Performance
Goto Forum:
  


Current Time: Thu Apr 25 23:32:58 GMT 2024

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

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

Back to the top