Setting theme in RAP client-side widget [message #102962] |
Fri, 22 August 2008 15:19 |
|
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 |
Eclipse User |
|
|
|
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 |
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03532 seconds