Thanks, John. Yes, you're right. There is, however, a getRegistry() method
that retrieves the __registry map. It should be fairly easy to write a
function to search that map and create an array of the objects that match
some condition. Coming up with the appropriate search condition may be a
little less trivial, since qooxdoo objects don't have titles.

halcwb, you may need to add a property to each object -- a name or title or
whatever you want to call it -- on which you can search the registry, since
qooxdoo doesn't typically use such a name. You can use the setUserData()
method to assign a name to each object (that's the clean way, but could be
a bit slower if you're doing many searches through the register), or just
add a _searchTitle member to each object.

Cheers,

Derrell


On Mon Dec 29 2014 at 12:24:52 PM John Spackman <john-li...@zenesis.com>
wrote:

> It’s qx.core.ObjectRegistry, but it only supports lookup by hashcode
>
> On 29 Dec 2014, at 15:05, Derrell Lipman <derrell.lipman@
> unwireduniverse.com> wrote:
>
> There is a widget registry. I'm on my phone and can't look it up, but try
> a search for qooxdoo widget registry and I bet you'll find it.
>
> Derrell
>
> On Mon, Dec 29, 2014, 09:19 John Spackman <john-li...@zenesis.com> wrote:
>
>> AFAIK the answer is no.  With single page apps a single list of all
>> widgets could quickly get difficult to handle with css style queries, the
>> best practice would therefore be to use OO design techniques.  You can
>> access the root application by qx.core.Init.getApplication(), so if it had
>> a property for the main window you might end up with something like
>> qx.core.Init.getApplication().getMainWindow().getTitle()
>>
>> John
>>
>> > On 29 Dec 2014, at 10:01, 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.c
>> om/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
>>
> ------------------------------------------------------------
> ------------------
> 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
>
------------------------------------------------------------------------------
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