Hi Gene,

Am 12.06.2009 um 20:01 schrieb Gene Amtower:

> I think typical usage may be more complex than outlined in the  
> existing chapter content, and maybe that's where my understanding  
> met with difficulty.  I think the chapter assumes that I'm writing a  
> new widget with a couple of added components.  Instead, I'm trying  
> to create a new class that creates and controls a window object  
> within a desktop object.

Maybe I'm missing something obvious, but why don't you just store  
references to all important widgets as simple instance members? You  
can do that at widget creation time:

this.__myWidget1 = ...;

Later, e.g. in a listener, you can just access this.__myWidget1  
instead of navigating through some control hierarchy (which might  
change in the future when you move stuff around). That's a common  
pattern when creating GUIs (not only with qooxdoo). I think there's no  
need to mess with child controls and ids in your use case.

Regards,

   Andreas J.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to