Class ModuleTree

    • Constructor Detail

      • ModuleTree

        public ModuleTree​(HttpBaseServlet base)
        Constructor to generate a root tree
        Parameters:
        base -
      • ModuleTree

        public ModuleTree​(HttpBaseServlet base,
                          boolean bSmall)
        Constructor to generate a root tree
        Parameters:
        base -
        bSmall - Normal size or small size (true)
      • ModuleTree

        public ModuleTree()
        Default constructor, needed by GenericTreeServlet
    • Method Detail

      • setRootTree

        public void setRootTree()
        sets to data the root tree
        Specified by:
        setRootTree in class GenericTree
      • setSubTree

        public void setSubTree​(String nodeId,
                               String level)
        Generates a subtree with nodeId as root node
        Specified by:
        setSubTree in class GenericTree
        Parameters:
        nodeId -
      • getHTMLDescription

        public String getHTMLDescription​(String node)
        Returns a HTML with the description for the given node
        Specified by:
        getHTMLDescription in class GenericTree
        Parameters:
        node -
        Returns:
        a HTML String with the description for the given node
      • setIcons

        protected void setIcons()
        Selects the correct icons for the current set of nodes depending on the module type (Module, Pack or Template), it also sets the secondary icon in case the node have available updates.
      • getNodePosition

        protected String getNodePosition​(String nodeID)
        Description copied from class: GenericTree
        Returns the position relative to the rest of nodes at the same level
        Specified by:
        getNodePosition in class GenericTree
        Returns:
        the position relative to the rest of nodes at the same level
      • getParent

        protected String getParent​(String node)
        Returns the node id for the parent of the passed node
        Specified by:
        getParent in class GenericTree
        Parameters:
        node -
        Returns:
        the node id for the parent of the passed node
      • isLastLevelNode

        protected boolean isLastLevelNode​(String nodeID)
        Description copied from class: GenericTree
        Returns true in case the node is the last one at its level
        Specified by:
        isLastLevelNode in class GenericTree
        Returns:
        true in case the node is the last one at its level