Class DefaultNodeOperationsHandler

java.lang.Object
com.hybris.backoffice.excel.export.wizard.renderer.attributechooser.DefaultNodeOperationsHandler
All Implemented Interfaces:
NodeOperationsHandler

@Deprecated(since="6.7", forRemoval=true) public class DefaultNodeOperationsHandler extends Object implements NodeOperationsHandler
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.7 AttributesChooserNodesOperationsHandler
Default implementation of NodeOperationsHandler
  • Constructor Details

    • DefaultNodeOperationsHandler

      public DefaultNodeOperationsHandler()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • moveNodesBetweenTrees

      public void moveNodesBetweenTrees(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> sourceModel, org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> targetModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeOperationsHandler
      Moves selected nodes from source tree to target tree. If moved node is a sub node and target tree doesn't have grouping node it will be created.
      Specified by:
      moveNodesBetweenTrees in interface NodeOperationsHandler
      Parameters:
      sourceModel - source tree from which selected nodes will be moved.
      targetModel - target tree where nodes will be moved.
    • refreshFilteredTree

      protected void refreshFilteredTree(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> sourceModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • removeFromParent

      protected void removeFromParent(org.zkoss.zul.TreeNode<SelectedAttribute> node)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • moveSubNode

      protected void moveSubNode(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> targetModel, org.zkoss.zul.TreeNode<SelectedAttribute> selectedNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createParent

      protected org.zkoss.zul.DefaultTreeNode<SelectedAttribute> createParent(org.zkoss.zul.TreeNode<SelectedAttribute> selectedNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • moveGroupingNode

      protected void moveGroupingNode(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> targetModel, org.zkoss.zul.TreeNode<SelectedAttribute> selectedNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getGroupingNodeByAttribute

      protected Optional<org.zkoss.zul.TreeNode<SelectedAttribute>> getGroupingNodeByAttribute(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> targetModel, SelectedAttribute attribute)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • updateGroupingNodesSelection

      public void updateGroupingNodesSelection(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> treeModel, org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Treeitem,org.zkoss.zul.TreeNode<SelectedAttribute>> event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeOperationsHandler
      Updates groping nodes selection based on select event data. If all sub nodes are selected then grouping node is also selected. If grouping node is selected then all sub nodes are selected. etc.
      Specified by:
      updateGroupingNodesSelection in interface NodeOperationsHandler
      Parameters:
      treeModel - tree model which contains nodes to be updated.
      event - select event.
    • deselectGroupingNodes

      protected void deselectGroupingNodes(org.zkoss.zul.AbstractTreeModel model, org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Treeitem,org.zkoss.zul.TreeNode<SelectedAttribute>> event)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • selectGroupingNodes

      protected void selectGroupingNodes(org.zkoss.zul.AbstractTreeModel model, org.zkoss.zk.ui.event.SelectEvent<org.zkoss.zul.Treeitem,org.zkoss.zul.TreeNode<SelectedAttribute>> event)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getGroupingNodes

      protected Set<org.zkoss.zul.TreeNode<SelectedAttribute>> getGroupingNodes(Set<org.zkoss.zul.TreeNode<SelectedAttribute>> selectedNodes)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • sort

      public void sort(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> treeModel, boolean ascending)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeOperationsHandler
      Sorts tree model based on nodes data.
      Specified by:
      sort in interface NodeOperationsHandler
      Parameters:
      treeModel - tree model to sort.
      ascending - sort direction.
    • sort

      protected void sort(org.zkoss.zul.DefaultTreeModel<SelectedAttribute> model, boolean ascending)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • filterTreeModel

      public org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> filterTreeModel(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> model, String searchText)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeOperationsHandler
      Filter tree model.
      Specified by:
      filterTreeModel in interface NodeOperationsHandler
      Parameters:
      model - source tree model.
      searchText - filter text.
      Returns:
      filtered model.
    • getSelectionControl

      protected org.zkoss.zul.ext.SelectionControl<org.zkoss.zul.TreeNode<SelectedAttribute>> getSelectionControl(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> model)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isNodeSelectable

      protected boolean isNodeSelectable(org.zkoss.zul.TreeNode<SelectedAttribute> treeNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isLocalizedRoot

      protected boolean isLocalizedRoot(org.zkoss.zul.TreeNode<SelectedAttribute> treeNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • areChildrenSelectable

      protected boolean areChildrenSelectable(org.zkoss.zul.TreeNode<SelectedAttribute> treeNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAttributeSearchTextResolver

      protected com.hybris.cockpitng.tree.util.TreeUtils.FilterStringResolver<org.zkoss.zul.TreeNode<SelectedAttribute>> getAttributeSearchTextResolver()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • extractAttributes

      public List<SelectedAttribute> extractAttributes(org.zkoss.zul.AbstractTreeModel<org.zkoss.zul.TreeNode<SelectedAttribute>> treeModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeOperationsHandler
      Extracts data from tree model's nodes. Grouping nodes data is skipped.
      Specified by:
      extractAttributes in interface NodeOperationsHandler
      Parameters:
      treeModel - source tree model.
      Returns:
      flat list representing tree data.
    • createTreeNodes

      public List<org.zkoss.zul.DefaultTreeNode<SelectedAttribute>> createTreeNodes(Collection<AttributeDescriptorModel> attributes, Predicate<SelectedAttribute> filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeOperationsHandler
      Creates tree nodes with for given attributes.
      Specified by:
      createTreeNodes in interface NodeOperationsHandler
      Parameters:
      attributes - all available attributes.
      filter - filter which allows to exclude create nodes for given attributes.
      Returns:
    • createLocalizedChildren

      protected Set<org.zkoss.zul.DefaultTreeNode<SelectedAttribute>> createLocalizedChildren(AttributeDescriptorModel attribute, Set<String> languages, Predicate<SelectedAttribute> includedAttributes)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSupportedLanguages

      protected Set<String> getSupportedLanguages()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCommonI18NService

      public void setCommonI18NService(CommonI18NService commonI18NService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCommonI18NService

      public CommonI18NService getCommonI18NService()
      Deprecated, for removal: This API element is subject to removal in a future version.