Hello List,
I'd like to create an appearance where I'm able to set the state
appearance depending on a widgets property. In the example above I've
defined a property backgroundColorUnselected which is set for each
instance individually.
So if the state changes to unselected the value of this property should
be passed back by the state part of the appearance. Before the last
changes to the appearance theme there was a parameter vWidget which
contained the instance of the widget the appearance was associated with.
How can this be done?
Here is an appearance skeleton which should help to understand my needs:
theme.registerAppearance("colored-list-item", {
setup : function() {
{
this.bgcolor_selected = new
qx.renderer.color.ColorObject("highlight");
this.color_selected = new
qx.renderer.color.ColorObject("highlighttext");
},
initial : function(vTheme)
{
/* initial code here */
},
state : function(vTheme, vStates)
{
return {
backgroundColor : vStates.selected ? this.bgcolor_selected :
widgetInstance.getBackgroundColorUnselected(),
color : vStates.selected ? this.color_selected : null
};
}
});
Thank you for your help.
Best regards...
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel