Derrell, Thank you, that is what I am looking for. In my case the application logic is on the server and the the qooxdoo client is realizing the UI and catching events. When a call back event occurs and the application needs to reference an object that is outside of the event scope if does not know how to identify it. Is it common to maintain client side mappings of hash values to some type of application level object instance id?
-Chris On Mon, Mar 25, 2013 at 12:00 PM, Derrell Lipman <[email protected]> wrote: > On Mon, Mar 25, 2013 at 12:45 PM, Chris Bunn <[email protected]> wrote: >> >> Hello, >> >> I am developing a Desktop application and I need to be able to >> retrieve an qooxdoo object by some type of identifier, ideally I would >> be able to assign this id when the object is created. The would be >> something like document.getElementById(id), but instead of returning a >> DOM element it would return a qooxdoo object. Does such a mechanism >> exist? > > > Every qooxdoo object instance, or rather, any instance of an object which > descends from qx.core.Object, has a toHashCode() method that returns a > unique ID for that object instance. You can store that hash code wherever > you like, and later retrieve the object instance with > qx.core.ObjectRegistry.fromHashCode() > > var button = new qx.ui.form.Button("Press me!"); > var buttonId = button.toHashCode(); > > ... > > button = qx.core.ObjectRegistry.fromHashCode(buttonId); > > I think that's what you're looking for. > > Derrell > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
