-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
when using MVVM you'll likely use a TreeModel implementation. If it implements the Selectable interface (DefaultTreeModel and AbstractTreeModel do this already) you just need to add the children to the selection whenever one node is selected.
see: http://www.zkoss.org/javadoc/7.0.2/zk/org/zkoss/zul/AbstractTreeModel.html#addToSelection(E)
Robert
2 | No.2 Revision |
when using MVVM you'll likely use a TreeModel implementation. If it implements the Selectable interface (DefaultTreeModel and AbstractTreeModel do this already) you just need to add the children to the selection whenever one node is selected.
see: http://www.zkoss.org/javadoc/7.0.2/zk/org/zkoss/zul/AbstractTreeModel.html#addToSelection(E)
or at a lower level you can implement the TreeSelectableModel interface Robert
3 | No.3 Revision |
when using MVVM you'll likely use a TreeModel implementation. If it implements the Selectable interface (DefaultTreeModel and AbstractTreeModel do this already) you just need to add the children to the selection whenever one node is selected.
see: http://www.zkoss.org/javadoc/7.0.2/zk/org/zkoss/zul/AbstractTreeModel.html#addToSelection(E)
or at a lower level you can implement the TreeSelectableModel interface interface.