Class TmaBpoTreeModel<T extends TmaProductOfferingModel>
- java.lang.Object
-
- org.zkoss.zul.AbstractTreeModel<TmaPoTreeNode>
-
- de.hybris.platform.b2ctelcobackoffice.tree.TmaBpoTreeModel<T>
-
- All Implemented Interfaces:
java.io.Serializable,org.zkoss.zul.ext.Openable<TmaPoTreeNode>,org.zkoss.zul.ext.Pageable,org.zkoss.zul.ext.Selectable<TmaPoTreeNode>,org.zkoss.zul.ext.TreeOpenableModel,org.zkoss.zul.ext.TreeSelectableModel,org.zkoss.zul.PageableModel,org.zkoss.zul.TreeModel<TmaPoTreeNode>
public class TmaBpoTreeModel<T extends TmaProductOfferingModel> extends org.zkoss.zul.AbstractTreeModel<TmaPoTreeNode>
Tree model used for handlingTmaBundledProductOfferingModel.CHILDRENhierarchy.- Since:
- 6.7
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TmaBpoTreeModel(TmaPoTreeNode root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewNode(TmaPoTreeNode parentNode, TmaProductOfferingModel productOfferingModel)Creates a newTmaPoTreeNodefor the givenTmaProductOfferingModeland appends it to an existing node.TmaPoTreeNodegetChild(TmaPoTreeNode node, int index)intgetChildCount(TmaPoTreeNode node)int[]getPath(TmaPoTreeNode child)booleanisLeaf(TmaPoTreeNode node)voidremove(TmaPoTreeNode node)Removes a tree node from the tree hierarchy, triggering the event also onTreewhich is responsible for displaying the tree structure.-
Methods inherited from class org.zkoss.zul.AbstractTreeModel
addOpenObject, addOpenPath, addOpenPaths, addPagingEventListener, addSelectionPath, addSelectionPaths, addToSelection, addTreeDataListener, afterSort, beforeSort, clearOpen, clearSelection, clone, fireEvent, fireEvent, fireEvent, fireOpenChanged, fireSelectionChanged, getActivePage, getChild, getIndexOfChild, getOpenCount, getOpenObjects, getOpenPath, getOpenPaths, getPageCount, getPageSize, getRoot, getSelection, getSelectionControl, getSelectionCount, getSelectionPath, getSelectionPaths, isMultiple, isObjectOpened, isOpenEmpty, isPathOpened, isPathSelected, isSelected, isSelectionEmpty, removeFromSelection, removeOpenObject, removeOpenPath, removeOpenPaths, removePagingEventListener, removeSelectionPath, removeSelectionPaths, removeTreeDataListener, setActivePage, setMultiple, setOpenObjects, setPageSize, setSelection, setSelectionControl
-
-
-
-
Constructor Detail
-
TmaBpoTreeModel
public TmaBpoTreeModel(TmaPoTreeNode root)
-
-
Method Detail
-
isLeaf
public boolean isLeaf(TmaPoTreeNode node)
-
getChild
public TmaPoTreeNode getChild(TmaPoTreeNode node, int index)
-
getChildCount
public int getChildCount(TmaPoTreeNode node)
-
remove
public void remove(TmaPoTreeNode node)
Removes a tree node from the tree hierarchy, triggering the event also onTreewhich is responsible for displaying the tree structure.- Parameters:
node- the node to be removed
-
addNewNode
public void addNewNode(TmaPoTreeNode parentNode, TmaProductOfferingModel productOfferingModel)
Creates a newTmaPoTreeNodefor the givenTmaProductOfferingModeland appends it to an existing node.- Parameters:
parentNode- the node that will be updated with a new child nodeproductOfferingModel- to be used for creating a new node
-
getPath
public int[] getPath(TmaPoTreeNode child)
- Specified by:
getPathin interfaceorg.zkoss.zul.TreeModel<T extends TmaProductOfferingModel>- Overrides:
getPathin classorg.zkoss.zul.AbstractTreeModel<TmaPoTreeNode>
-
-