When you create your TableToolbar, pass "this" to the constructor, then
you'll have a reference inside that class:
MainWindow:
createToolbar: function()
{
var toolbar = new your.namespace.TableToolbar(this);
}
TableToolbar:
construct: function(window)
{
this._window = window;
}
than anywhere in your TableToolbar you'll be able to call this._window and
access the window object.
On Fri, Sep 24, 2010 at 12:50 PM, stevenv <[email protected]> wrote:
>
> Hi Nick
>
> No I'm trying to close a qooxdoo window and the window is not created in
> the
> same function or file as the event handler.
>
> I have three file, MainWindow - this is the window that I want to close and
> contain a table(SuppliersTable.js) and a toolbar(TableToolbar.js)
>
> Could you please explain what you mean by passed in as argument.
>
> I think what I need is a way to reference the mainwindow - getElementById()
> but also can't find a method to assign an id to a widget.
>
> Thanks
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Closing-a-window-tp5566812p5567300.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel