On Wed, Mar 14, 2012 at 20:01, Scott Chapman <[email protected]> wrote:

> Hi!
>
> I have a Page with a Table on it...
>
> qx.Class.define("kiosk_portal.KioskListTab",
> {
>  extend : qx.ui.tabview.Page,
>  members :
>  {
>    host_id : null
>  },
>  construct : function(label)
>    {
>      this.base(arguments, label);
>      this.setLayout(new qx.ui.layout.Grow());
>
>      this.__kioskListTable = new kiosk_portal.KioskListTable().set({
>        decorator: null,
>        height: 20,
>        maxWidth: 550
>      });
>
>      this.add(this.__kioskListTable);
>      this.setShowCloseButton(false);
>    },
>
> >From within the kiosk_portal.KioskListTable(), I want to grab the
> TabView that holds this Page, so I can call a method on it.
>
> How to get the parent TabView for this Table?
>

You're using two different names but I think one of them is a typo.
kiosk_portal.KioskListTable is missing the trailing "le" in the class
definition, but I think you intend for the question and the class to refer
to the same thing.

The TabView has two child controls, "bar" and "pane". When you do
tabView.add(page) you are actually adding the page to the "pane" child.
Therefore, given a  Page object, you should be able to retrieve the TabView
it's associated with, using:

var tabView = page.getLayoutParent().getLayoutParent();

Let's try it:

http://tinyurl.com/7ro3dzm

Derrell
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to