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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmove(Tree tree, T node, T target, boolean addAsChild, boolean append)Moves given node in place of 'target' node.-
Methods inherited from interface de.hybris.platform.cockpit.components.mvc.SelectableComponent
getSelected, selected
-
Methods inherited from interface de.hybris.platform.cockpit.components.mvc.tree.TreeController
add, add, create, create, customAction, delete, doubleClicked, move
-
-
-
-
Method Detail
-
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 itselfnode- to be movedtarget- 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)
-
-