Class TreeViewTag.TreeView

    • Constructor Detail

      • TreeView

        public TreeView()
    • Method Detail

      • getTreePrefix

        public java.lang.String getTreePrefix()
      • setTreePrefix

        public void setTreePrefix​(java.lang.String treePrefix)
      • setDataAttribute

        public void setDataAttribute​(DataAttribute dataAttribute)
      • setTreeDataAttribute

        public void setTreeDataAttribute​(DataAttribute treeDataAttribute)
      • getTreeDataAttribute

        public DataAttribute getTreeDataAttribute()
      • getTreeLevel

        public int getTreeLevel()
      • setTreeLevel

        public void setTreeLevel​(int treeLevel)
      • getTreeHint

        public java.lang.String getTreeHint()
      • setTreeHint

        public void setTreeHint​(java.lang.String treeHint)
      • getTreeCSS

        public java.lang.String getTreeCSS()
      • setTreeCSS

        public void setTreeCSS​(java.lang.String treeCSS)
      • isWrapper

        public boolean isWrapper()
      • setWrapper

        public void setWrapper​(boolean wrapper)
      • isDragdrop

        public boolean isDragdrop()
      • setDragdrop

        public void setDragdrop​(boolean dragdrop)
      • getTreeLink

        public java.lang.String getTreeLink()
      • setTreeLink

        public void setTreeLink​(java.lang.String treeLink)
      • isAjaxLink

        public boolean isAjaxLink()
        Return true to use ajax-refresh
        Returns:
        boolean true if ajax
      • setAjaxLink

        public void setAjaxLink​(boolean ajaxLink)
      • getTreeInput

        public java.lang.String getTreeInput()
      • setTreeInput

        public void setTreeInput​(java.lang.String treeInput)
      • getTreeType

        public java.lang.String getTreeType()
      • setTreeType

        public void setTreeType​(java.lang.String treeType)
      • getTreeDisable

        public int getTreeDisable()
      • setTreeDisable

        public void setTreeDisable​(int treeDisable)
      • getTreeHighlight

        public int getTreeHighlight()
      • setTreeHighlight

        public void setTreeHighlight​(int treeHighlight)
      • getTreeNode

        public java.lang.Object getTreeNode()
      • setTreeNode

        public void setTreeNode​(java.lang.Object treeNode)
      • getTreeCollection

        public java.util.Collection getTreeCollection()
      • setTreeCollection

        public void setTreeCollection​(java.util.Collection treeCollection)
      • getTreeOpened

        public java.util.Collection<?> getTreeOpened()
      • setTreeOpened

        public void setTreeOpened​(java.util.Collection<?> treeOpened)
      • getTreeChecked

        public java.util.Collection<?> getTreeChecked()
      • setTreeChecked

        public void setTreeChecked​(java.util.Collection<?> treeChecked)
      • getTreeDisabled

        public java.util.Collection<?> getTreeDisabled()
      • setTreeDisabled

        public void setTreeDisabled​(java.util.Collection<?> treeDisabled)
      • getTreeHighlighted

        public java.util.Collection<?> getTreeHighlighted()
      • setTreeHighlighted

        public void setTreeHighlighted​(java.util.Collection<?> treeHighlighted)
      • getTreeRemoved

        public java.util.Collection<?> getTreeRemoved()
      • setTreeRemoved

        public void setTreeRemoved​(java.util.Collection<?> treeRemoved)
      • getTreeRetained

        public java.util.Collection<?> getTreeRetained()
      • setTreeRetained

        public void setTreeRetained​(java.util.Collection<?> treeRetains)
      • getCurrentLevel

        public int getCurrentLevel()
      • setCurrentLevel

        public void setCurrentLevel​(int currentLevel)
      • getMemo

        public java.util.Map getMemo()
      • setMemo

        public void setMemo​(java.util.Map memo)
      • addTreeCollection

        public java.util.Collection addTreeCollection​(java.util.Collection collection)
      • addTreeRetained

        public void addTreeRetained​(java.util.Collection collection)
      • getMemoMap

        public java.util.Map getMemoMap()
        Return a Set to store information between ajax and not ajax for this treeview.
        Returns:
        An initialized TreeSet
      • isHighlighted

        public boolean isHighlighted​(TreeNode node)
        Returns true if given TreeNode is Highlighted
        Parameters:
        node - the TreeNode to work with
        Returns:
        true if highlighted
      • isDisabled

        public boolean isDisabled​(TreeNode node)
        Returns true if given TreeNode is disabled
        Parameters:
        node - the TreeNode to work with
        Returns:
        true if disabled
      • isChecked

        public boolean isChecked​(TreeNode node)
        Returns true if given TreeNode is checked
        Parameters:
        node - the TreeNode to work with
        Returns:
        true if checked
      • isRemoved

        @Deprecated
        public boolean isRemoved​(TreeNode node)
        Deprecated.
        use isRemoved(Object) instead
        Returns true if given TreeNode is removed
        Parameters:
        node - the TreeNode to work with
        Returns:
        true if removed
      • isRemoved

        public boolean isRemoved​(java.lang.Object node)
        Returns true if given Object (TreeNode, Group...) is removed.
        Parameters:
        node - the object to work with
        Returns:
        true if removed
      • getFilteredChildren

        public java.util.Collection getFilteredChildren​(java.lang.Object nodeObject)
      • getTreeLink

        public java.lang.String getTreeLink​(Data node,
                                            JcmsJspContext ctxt)
        Return the links associated to the given Data
        Parameters:
        node - the Data
        ctxt - the JcmsJspContext
        Returns:
        String link
      • getTreeLink

        public java.lang.String getTreeLink​(java.lang.String link,
                                            JcmsJspContext ctxt)
        Resolve the links regexp
        Parameters:
        link - the link
        ctxt - the JcmsJspContext
        Returns:
        String link
      • getItemCss

        public java.lang.String getItemCss​(TreeNode treeNode,
                                           Member member,
                                           Workspace workspace)
        Returns a string representing CSS classes appended to the tree item (eg. <li class="treeview-item"> ...).
        Parameters:
        treeNode - current node to display
        member - Current member
        workspace - Current workspace
        Returns:
        String representing CSS classes