Hi All,

short "slide-in":

What about creating a singleton, something like an "object reference by 
name manager", and then using a mixin for qx.ui.core.Widget which adds 
constructor and add/remove logic which pushes the reference of the 
widget by name to the manager.

     widget.addRefName('myobject');

would then add the reference to the manager, and

     var widget = manager.getByRefName('myobject');

retreives the instance for you from everywhere.



Best Regards
Dietrich


Am 25.03.2013 22:16, schrieb Chris Bunn:
> Derrell,
>
> I am tracking application state by user in a database, I just don't
> see how to interact with the qooxdoo objects (or widgets) that are not
> known in the event context without using something like the hash
> value. If for example I have a parent/child table structure and I am
> displaying the parent record in one qx.ui.window.Window and I am
> maintain child records in a separate qx.ui.window.Window. I would like
> to update a label containing a running total in the parent record
> window after the completion of each child record edit. At the
> completion of each child record entry I make a call back to update the
> child record but I don't see the application logic can update the
> running total widget in parent record window without knowing the
> hashcode or some indirect reference to it.
>
> Thanks for your help and patience.
>
> -Chris
>
>


------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to