-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks a lot, it indeed works fine now %)

That was my mistake - I didn't think that getSelection() of TabView will return 
an array of Pages, not a single Page. It works fine now.

Best regards, Mikhail

On 09/03/2010 07:12 PM, thron7 wrote:
> 
> 
> On 09/03/2010 05:44 PM, Mikhail Novikov wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> Hello!
>>
>> According to the API reference
>> "http://demo.qooxdoo.org/1.2.x/apiviewer/#qx.ui.tabview.Page"; should
>> have getChildren method inherited from qx.ui.container.Composite.
> 
> Actually, from the qx.ui.core.MChildrenHandling mixin, to be exact.
> 
>> Unfortunately it triggers an error when I try to access this method,
>> saying that it doesn't have it.
> 
> Cannot repro. See this Playground sample: http://tinyurl.com/3xnkpfx
> It's the stock "Dialog" sample that uses tabview.Page, where I inserted
> a "page.getChildren" call, which faithfully delivers the recently added
> labels.
> 
>>
>> I wonder if that is a bug or I am doing something wrong. What I need
>> is an ability to get contents of the Page (not the button, but the
>> actual content).
> 
> Uhm, IMO getChildren() is the right API to use. It will return the
> widgets you have ".add()"-ed to the page - that is, its content. This
> will not include the button. tabview.Page is a container widget, so
> anything you add to it, represents its contents. You can then walk
> through the child widgets and do whatever you want to them. This will
> change the "content" of the page.
> 
> HTH,
> T.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyBIjwACgkQPHyh4sfuKrkt2ACeKJofYTQ0OjFOgDIyugMVWbMF
kBkAnR2UJ25gbAr+Fwc27oeu6BP1HitS
=HbgT
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to