It's probably easier than you think. :)

var treeItem = e.getTarget();
if (treeItem instanceof qx.ui.tree.TreeFolder) {
  //treeItem is not a leaf
}
else if (treeItem instanceof qx.ui.tree.TreeFile) {
  //treeItem is a leaf
}


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-tell-if-tree-node-clicked-on-is-a-leaf-or-not-tp7113582p7113822.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to