Class TmaBpoTreeModel<T extends TmaProductOfferingModel>
java.lang.Object
org.zkoss.zul.AbstractTreeModel<TmaPoTreeNode>
de.hybris.platform.b2ctelcobackoffice.tree.TmaBpoTreeModel<T>
- All Implemented Interfaces:
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 handling
TmaBundledProductOfferingModel.CHILDREN hierarchy.- Since:
- 6.7
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zul.AbstractTreeModel
org.zkoss.zul.AbstractTreeModel.DefaultSelectionControl<E extends Object>, org.zkoss.zul.AbstractTreeModel.Path -
Field Summary
Fields inherited from class org.zkoss.zul.AbstractTreeModel
_opens, _selectionFields inherited from interface org.zkoss.zul.PageableModel
INTERNAL_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewNode(TmaPoTreeNode parentNode, TmaProductOfferingModel productOfferingModel) Creates a newTmaPoTreeNodefor the givenTmaProductOfferingModeland appends it to an existing node.getChild(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 Details
-
TmaBpoTreeModel
-
-
Method Details
-
isLeaf
-
getChild
-
getChildCount
-
remove
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
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
- Specified by:
getPathin interfaceorg.zkoss.zul.TreeModel<T extends TmaProductOfferingModel>- Overrides:
getPathin classorg.zkoss.zul.AbstractTreeModel<TmaPoTreeNode>
-