-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
If it's a Tree
you have you can get the selected item by :
http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Tree.html#getSelectedItem())
Greetz chill.
2 | No.2 Revision |
If it's a Tree
you have you can get the selected item by :
tree.getSelectedItem()http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Tree.html#getSelectedItem())
Greetz chill.
3 | No.3 Revision |
If it's a Tree
you have you can get the selected item node by :
tree.getSelectedItem()// maybe some more casting need to be done.
Set<mynode> nodes = ((MyModel)tree.getModel()).getSelection();
This is of course true if MyModel
extends AbstractTreeModel
.
Greetz chill.
4 | No.4 Revision |
If it's a Tree
you have you can get the selected node by :
// maybe some more casting need to be done.
This is of course true if MyModel
extends AbstractTreeModel
.
Greetz chill.