You could use something like

http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/qcl/trunk/source/class/qcl/application/MWidgetId.js?revision=19914&view=markup

and mixin it to qx.core.Object and then add 

    
307         _widgetById : {},  
308             
309         /*
310        
---------------------------------------------------------------------------
311            WIDGET ID
312        
---------------------------------------------------------------------------
313         */             
314         
315         /**
316          * Store a reference to a widget linked to its id.
317          * @param id {String}
318          * @param widget {Object}
319          * @return void
320          */
321         setWidgetById : function(id,widget)
322         {
323           this._widgetById[id] = widget;
324         },
325         
326         /**
327          * gets a reference to a widget by its id
328          * @param id {String}
329          * @return widget {Object}
330          */
331         getWidgetById : function(id)
332         {
333           return this._widgetById[id];
334         },

to your application. Then you can have a unique id on each widget and get it
from the application instance by id.

Cheers, 

C. 
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-can-I-get-concrete-widget-by-unique-id-tp5579198p5581195.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to