here it is
http://qooxdoo.org/documentation/0.8/snippets#finding_out_which_qooxdoo_widget_generated_a_given_dom_element

On Fri, Dec 26, 2008 at 12:18 AM, thron7 <thomas.herchenroe...@1und1.de>wrote:

> Hi Andy,
>
> nice work! Would you care putting it up on the wiki?!
>
> Thomas
>
>
> > thanks again, Thomas.
> >
> > So if someone is following this thread, the complete answer is:
> >
> > In qooxdoo v8 the following class receives a domElement (i.e. a div) and
> > returns the fully qualified classname of the qooxdoo object embodied in
> > the
> > div (or undefined if it is not a qx object).
> >
> >       getQooxdooClassName: function (domElement)
> >       {
> >             if (domElement.$$hash)
> >             {
> >                   var qxWrapper =
> > qx.core.ObjectRegistry.__registry[domElement.$$hash];
> >                   if (qxWrapper.__attribValues &&
> > qxWrapper.__attribValues["$$widget"])
> >                   {
> >                         var wid = qxWrapper.__attribValues["$$widget"];
> //
> > widgetId
> >                         var widget =
> > qx.core.ObjectRegistry.__registry[wid];
> >                         return widget.classname
> >                   }
> >             }
> >             // the domElement has no qooxdoo counterpart - returns
> > `undefined`
> >       },
> >
> >
> > On Wed, Dec 24, 2008 at 2:04 PM, thron7
> > <thomas.herchenroe...@1und1.de>wrote:
> >
> >> > thank you, Thomas.
> >> > actually I used generated ids to infer the qooxdoo classname of each
> >> div,
> >> > and write easier selenium locators.
> >> > Is there a way to obtain the qooxdoo classname of every native html
> >> > element?
> >>
> >> I'm not sure, the interface has changed with 0.8. Have you tried looking
> >> at a div's $$hash attribute, and looking it up in
> >> qx.core.ObjectRegistry,
> >> maybe in the __I member?!
> >>
> >> T.
> >>
> >> > I tried to use some introspection starting from the qx namespace,
> >> trying
> >> > to
> >> > reach the ObjectRegistry  but with no success so far.
> >> >
> >> > On Wed, Dec 24, 2008 at 1:13 AM, thron7
> >> > <thomas.herchenroe...@1und1.de>wrote:
> >> >
> >> >> > I used generated ids in qx 7 for selenium tests, as explained in
> >> this
> >> >> url:
> >> >> >
> >>
> http://qooxdoo.org/contrib/project/simulator/qooxdoo-tests-with-selenium
> >> >> > Is it possible to generate them in qx 8? How?
> >> >>
> >> >> I'm afraid no, the setting and the corresponding functionality is
> >> >> currently not available in 0.8. I've added a bug to that end:
> >> >> http://bugzilla.qooxdoo.org/show_bug.cgi?id=1816
> >> >>
> >> >> Thomas
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >>
> ------------------------------------------------------------------------------
> >> >> _______________________________________________
> >> >> qooxdoo-devel mailing list
> >> >> qooxdoo-devel@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Andy Worms
> >> >
> >> > POB 7011
> >> > 31070 Haifa
> >> > Israel
> >> >
> >> > T: 077-5496414
> >> > M: 054-4650657
> >> > F: 153-77-5496414
> >> >
> >>
> ------------------------------------------------------------------------------
> >> > _______________________________________________
> >> > qooxdoo-devel mailing list
> >> > qooxdoo-devel@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >> >
> >>
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> _______________________________________________
> >> qooxdoo-devel mailing list
> >> qooxdoo-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >>
> >
> >
> >
> > --
> > Andy Worms
> >
> > POB 7011
> > 31070 Haifa
> > Israel
> >
> > T: 077-5496414
> > M: 054-4650657
> > F: 153-77-5496414
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > qooxdoo-devel mailing list
> > qooxdoo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Andy Worms

POB 7011
31070 Haifa
Israel

T: 077-5496414
M: 054-4650657
F: 153-77-5496414
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to