Skip to main content



      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 11:19 Go to next message
Eclipse UserFriend
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 15: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 04:26 Go to previous messageGo to next message
Eclipse UserFriend
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 11: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: Sun Jul 13 21:25:27 EDT 2025

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

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

Back to the top