Re: [qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-09 Thread Oliver Specht
Hi, Chris, this works great. Thank you! Now I have to see how I can select the right widget etc., but it seems that this is more finding out the mysterious ways of the RAP framework ;) Thank you all for your help, Oliver Christian Schmidt wrote: > Hi Oliver, > > sorry, I'm not perfectly famili

Re: [qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-09 Thread Christian Schmidt
Hi Oliver, sorry, I'm not perfectly familiar with qx. 0.7.x. I think we told you the wrong method. Please try this to get the root widget: var rootWidget = qx.ui.core.ClientDocument.getInstance(); To traverse to your application, use "getChildren()": var childrenArray = rootWidget.getChildren();

Re: [qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-09 Thread Oliver Specht
Hi, Daniel, ok, thanks, this works. Isn't there any possibility to traverse the applications widgets or ui elements? Sorry for asking and asking but getApplication() only returns an Object and I do not know what to do with it now. The API Docs do not help and I haven't found any good doc resou

Re: [qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-09 Thread Daniel Wagner
Hi Oliver, Chris' advice works in qooxdoo 0.8, but RAP uses qooxdoo 0.7 so you'll have to use this instead: qx.core.Init.getInstance().getApplication() Regards, Daniel Oliver Specht schrieb: > Hi, Chris, > thanks for the advice but it did not work. I tried this with the Firebug > but maybe

Re: [qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-08 Thread Oliver Specht
Hi, Chris, thanks for the advice but it did not work. I tried this with the Firebug but maybe the "this" pointer is not correctly set there. I am developing a RAP project, so I cannot really access/change the qooxdoo code. Is it correct that a general qx object is loaded into the document? I

Re: [qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-08 Thread Christian Schmidt
Hi Oliver, yes, if for example your "Application" class has an getTree() method witch returns the tree widget instance, you can call this on a qooxdoo IFrame: this._iFrame.getWindow().qx.core.Init.getApplication().getTree() Hope this helps. Cheers, Chris oliverspecht schrieb: > Hi, > I need t

[qooxdoo-devel] How to access a qooxdoo element from "outside"

2009-12-08 Thread oliverspecht
Hi, I need to access a qooxdoo Tree from another GUI component which is set in an IFrame. I searched the docs but did not find any hint. I tried qx.Class.getClass() etc. but nothing worked. Is there any possibility to traverse the qooxdoo GUI components in a webpage? Something like in jQuery wra