Interface PositionAwareTreeController<T>

All Superinterfaces:
SelectableComponent<Tree,org.zkoss.zul.Treeitem,T>, TreeController<T>
All Known Implementing Classes:
NavigationNodeController, PositionAwareTreeControllerWrapper

public interface PositionAwareTreeController<T> extends TreeController<T>
Controller of a tree that provides API for exact positioning of nodes.
  • Siblings: append, prepend
  • Sub-node: last, first
  • Method Details

    • move

      void move(Tree tree, T node, T target, boolean addAsChild, boolean append)
      Moves given node in place of 'target' node.
      Parameters:
      tree - after successful movement, tree will be notified to update itself
      node - to be moved
      target - node to be shifted. In place of this 'target' node the 'node' will be moved.
      addAsChild - flag indicating whether node should be added as a child or not.
      append - if true the element will be placed after (addAsChild false) or in the very end (addAsChild true)