Class PositionAwareTreeControllerWrapper<T>
- java.lang.Object
-
- de.hybris.platform.cockpit.components.mvc.tree.TreeControllerWrapper<T>
-
- de.hybris.platform.cockpit.components.mvc.tree.PositionAwareTreeControllerWrapper<T>
-
- All Implemented Interfaces:
SelectableComponent<Tree,org.zkoss.zul.Treeitem,T>,PositionAwareTreeController<T>,TreeController<T>
public class PositionAwareTreeControllerWrapper<T> extends TreeControllerWrapper<T> implements PositionAwareTreeController<T>
Default PositionAwareTreeController Wrapper Implementation. Note:
This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped controller object.- See Also:
PositionAwareTreeController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cockpit.components.mvc.tree.TreeControllerWrapper
controller
-
-
Constructor Summary
Constructors Constructor Description PositionAwareTreeControllerWrapper(PositionAwareTreeController<T> controllerToWrap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmove(Tree tree, java.lang.Object node, java.lang.Object target, boolean addAsChild, boolean append)Moves given node in place of 'target' node.-
Methods inherited from class de.hybris.platform.cockpit.components.mvc.tree.TreeControllerWrapper
add, add, create, create, customAction, delete, doubleClicked, getSelected, move, selected
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
PositionAwareTreeControllerWrapper
public PositionAwareTreeControllerWrapper(PositionAwareTreeController<T> controllerToWrap)
-
-
Method Detail
-
move
public void move(Tree tree, java.lang.Object node, java.lang.Object target, boolean addAsChild, boolean append)
Description copied from interface:PositionAwareTreeControllerMoves given node in place of 'target' node.- Specified by:
movein interfacePositionAwareTreeController<T>- 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)
-
-