Revision history [back]

click to hide/show revision 1
initial version

answered 2014-11-03 08:59:09 +0800

cor3000 gravatar image cor3000

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

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

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.

Robert

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More