thron7 schrieb:
> My understanding is that any particular widget can have exactly one 
> decorator. So one way is to exchange one decorator with another, as you 
> do now. The other would be to modify the existing decorator by 
> retrieving it and then setting the desired property (like backgroundImage).
>
>   
Hold on! Don't do this. The decorators in qooxdoo are supposed to be 
configured when they are created. Once assigned to a widget their 
properties cannot be changed. This simplifies the code by a great extend 
and is usually no limitation. You should just create another decorator 
and switch  between them.


Best Fabian


> Thomas
>
> Jim Hunter wrote:
>   
>> I got around this by creating a copy of my basic decorator and set the
>> backgorund image in it. Now I can switch between the two by simply changing
>> the decorator from one to the other. Quite simple!
>>
>> Jim
>>
>>
>> On Tue, Oct 21, 2008 at 3:11 PM, Jim Hunter <[EMAIL PROTECTED]> wrote:
>>
>>   
>>     
>>> I am looking for some support with respect to the new decorators. I have a
>>> status area that I used to simply change the background image to indicate
>>> various statuses. Now, in order to change the background, I need to change
>>> the decorator. I tried creating a new Background decorator and setting the
>>> backgroundImage setting and then set my label to use this decorator. And it
>>> worked. But what I didn't notice at first was that it removed the decorator
>>> that I had on the label to begin with (borders). Is there a way to add a
>>> decorator to the ones that are currently in use, then remove it without
>>> effecting other decorators? If not, how would you handle this routine
>>> situation?
>>>
>>> Thanks,
>>> Jim
>>>
>>>
>>>     
>>>       
>>   
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>   
>>     
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to