Hi List,
I'm trying to get the TreeFolder that was double clicked:
var node = new qx.ui.tree.TreeFolder ("first");
node.setUserData({a: 'b', c: 'd'});
treeView.getRoot().add(node);
node.addListener("dblclick", this._onTreeDblClick);
...
_onTreeDblClick: function(e)
{
console.log (this.getUserData());
}
It is not working. Actually I would like to add a "dblclick" event listener
in the tree, like so:
treeView.addListener("dblclick", this._onTreeDblClick, *this*); // just to
keep all "this" references to the instance
but I'm a little lost with e.getTarget(), e.getRelatedTarget(),
e.getOriginalTarget(), e.getCurrentTarget().
How to get that "user data" on "dblclick" event?
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel