Class DefaultExplorerTreeModel

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.zkoss.zul.AbstractTreeModel

        org.zkoss.zul.AbstractTreeModel.DefaultSelectionControl<E extends java.lang.Object>, org.zkoss.zul.AbstractTreeModel.Path
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ZK_SORT_ASCENDING  
      static java.lang.String ZK_SORT_DESCENDING  
      • Fields inherited from class org.zkoss.zul.AbstractTreeModel

        _opens, _selection
      • Fields inherited from interface org.zkoss.zul.PageableModel

        INTERNAL_EVENT
    • Field Detail

      • ZK_SORT_ASCENDING

        public static final java.lang.String ZK_SORT_ASCENDING
        See Also:
        Constant Field Values
      • ZK_SORT_DESCENDING

        public static final java.lang.String ZK_SORT_DESCENDING
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultExplorerTreeModel

        public DefaultExplorerTreeModel​(NavigationTree navTree)
    • Method Detail

      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class org.zkoss.zul.AbstractTreeModel<NavigationNode>
      • getChildCount

        public int getChildCount​(NavigationNode parent)
        Specified by:
        getChildCount in interface org.zkoss.zul.TreeModel<NavigationNode>
      • findNodesByData

        public java.util.List<NavigationNode> findNodesByData​(java.lang.Object data)
        Description copied from interface: RefreshableTreeModel
        Gets all nodes related to specified data.

        In case of dynamic trees, method should return only those nodes that are already known and avoid traversing through whole tree to gather all related nodes.

        Specified by:
        findNodesByData in interface RefreshableTreeModel<NavigationNode>
        Parameters:
        data - node data
        Returns:
        list of known nodes that are related to data
      • findNodesWithWrappedData

        protected java.util.List<NavigationNode> findNodesWithWrappedData​(java.lang.Object data)
      • getPath

        public int[] getPath​(NavigationNode child)
        Specified by:
        getPath in interface org.zkoss.zul.TreeModel<NavigationNode>
        Overrides:
        getPath in class org.zkoss.zul.AbstractTreeModel<NavigationNode>
      • indexOf

        @Deprecated(since="1808",
                    forRemoval=true)
        protected int indexOf​(NavigationNode node,
                              java.util.List<NavigationNode> children)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1808, is no longer used
      • unpackNavigationNodeDecorator

        @Deprecated(since="1808",
                    forRemoval=true)
        protected NavigationNode unpackNavigationNodeDecorator​(NavigationNode node)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1808, is no longer used
      • sort

        public void sort​(java.util.Comparator<NavigationNode> comparator,
                         boolean ascending)
        Specified by:
        sort in interface org.zkoss.zul.ext.Sortable<NavigationNode>
      • getSortDirection

        public java.lang.String getSortDirection​(java.util.Comparator comparator)
        Specified by:
        getSortDirection in interface org.zkoss.zul.ext.Sortable<NavigationNode>