sharmaprateek <[EMAIL PROTECTED]> writes: >> Andreas's answer seems to be closer to my needs, but the disadvantage is >> that I should add a listener for each tree folder I would like to monitor. >> There are many such folders and I don't know how that would affect the >> performance. In Mohamed answer, I see the advantage of using the tree as >> listener object.
Somehow I'm missing the beginning of this thread (at least by the current subject). Assuming you're using the 'namespaces' branch and use the TreeFullControl class, there are events dispatched when a tree node is opened or closed. There are in fact three events: qx.constant.Event.TREEOPENWITHCONTENT Dispatched when a tree folder is opened and already has children qx.constant.Event.TREEOPENWHILEEMPTY Dispatched when a tree folder is opened but has no children qx.constant.Event.TREECLOSE Dispatched when a tree folder is closed These events are dispatched on the top-level Tree node. The example demo/example/TreeFullControl.html shows how to use it. AFAIK, there are no events dispatched in the Tree class in version 0.5.x nor in the Tree class of 'namespaces'. This applies only to the TreeFullControl class in 'namespaces'. >> Is there a way for using the tree object for listener and the parent node >> to come as event parameter? treeNode.getParentFolder() may be used to retrieve the parent node of the requesting tree node. Derrell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel