I'd recommend to think you are working in an object system, rather than in
the DOM. What do you need those references for?

If you want to change properties of a widget, make the containing widget
maintain that through a stored reference.

If you need to trigger changes between unrelated objects (ie. objects which
are not part of the same hierarchy), set up custom events that one object
can fire and the other listens to, use data binding, or Command objects.

Generally, think of good OO practices like MVC, Law of Demeter, etc.
Sifting through search results isn't idiomatic qooxdoo, IMO (presuming you
are using qx.Desktop - qx.Website is a different story).

T.

On Mon, Dec 29, 2014 at 11:01 AM, halcwb <hal...@gmail.com> wrote:

> With ExtJs you can quickly retrieve a reference to any widget by using css
> selector style queries. Something like: query('window[title="My title"]')
> and you will retrieve an array of window objects in the dom with that have
> the corresponding title. If you query just ('window') you receive all
> current windows, etc..
>
> Is there an equivalent in qooxdoo? And, if no, what is best practice to
> get/maintain references to widgets?
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Quickly-reference-widgets-in-browser-and-code-tp7586543.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to