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, _selection

    Fields inherited from interface org.zkoss.zul.PageableModel

    INTERNAL_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNewNode(TmaPoTreeNode parentNode, TmaProductOfferingModel productOfferingModel)
    Creates a new TmaPoTreeNode for the given TmaProductOfferingModel and appends it to an existing node.
    getChild(TmaPoTreeNode node, int index)
     
    int
     
    int[]
     
    boolean
     
    void
    Removes a tree node from the tree hierarchy, triggering the event also on Tree which 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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 on Tree which is responsible for displaying the tree structure.
      Parameters:
      node - the node to be removed
    • addNewNode

      public void addNewNode(TmaPoTreeNode parentNode, TmaProductOfferingModel productOfferingModel)
      Creates a new TmaPoTreeNode for the given TmaProductOfferingModel and appends it to an existing node.
      Parameters:
      parentNode - the node that will be updated with a new child node
      productOfferingModel - to be used for creating a new node
    • getPath

      public int[] getPath(TmaPoTreeNode child)
      Specified by:
      getPath in interface org.zkoss.zul.TreeModel<T extends TmaProductOfferingModel>
      Overrides:
      getPath in class org.zkoss.zul.AbstractTreeModel<TmaPoTreeNode>