On Tue, Aug 16, 2011 at 20:34, Simon White
<[email protected]>wrote:
> Hi
>
> I was assuming that each control had an "ID" property similar to
> properties like height and width etc. Now I see I was mistaken.
>
> Is there a method to retrieve a child control similar to javascript's
> get document.getElementById() method? I was thinking of something like
> mywindow.getElementById("txtName1").
>
Each qooxdoo object has a hash code. You can retrieve it like so:
var txtName = new qx.ui.form.TextField();
var txtNameHash = txtName.toHashCode();
The hash codes and widgets are stored in a registry, so you can retrieve the
widget later with:
txtName = qx.core.ObjectRegistry.fromHashCode(txtHashName);
Now the question is, why do you need to do that? If you're going to be
storing the hash code (e.g., txtNameHash) someplace, why can't you instead
store the widget reference itself (e.g., txtName) there, and avoid the
dereference to retrieve the widget reference?
Derrell
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel