Class CategoryMenuInfo

java.lang.Object
com.jalios.jcms.portlet.navigate.CategoryMenuInfo
All Implemented Interfaces:
MenuInfo, TreeNode

public class CategoryMenuInfo extends Object implements MenuInfo
  • Constructor Details

    • CategoryMenuInfo

      public CategoryMenuInfo(CategoryMenuInfo menuInfo)
    • CategoryMenuInfo

      public CategoryMenuInfo(Category category, Category[] ctxCategories, boolean navigatePortlet, int maxDepthLevel, int depthLevel, MenuInfo parent, MenuInfoFilter menuInfoFilter, String lang, Member member, javax.servlet.http.HttpServletRequest request)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: TreeNode
      Returns id of the current node
      Specified by:
      getId in interface TreeNode
      Returns:
      String Node id
    • getNode

      public Category getNode()
      Specified by:
      getNode in interface MenuInfo
    • getTreeRoot

      public TreeNode getTreeRoot()
      Description copied from interface: TreeNode
      Returns the root of the current node
      Specified by:
      getTreeRoot in interface TreeNode
      Returns:
      TreeNode root Node
    • getTreeParent

      public TreeNode getTreeParent()
      Description copied from interface: TreeNode
      Returns parent of the current node
      Specified by:
      getTreeParent in interface TreeNode
      Returns:
      TreeNode parent Node
    • getChildren

      public Collection<MenuInfo> getChildren()
      Specified by:
      getChildren in interface MenuInfo
    • getTreeChildren

      public Collection<? extends TreeNode> getTreeChildren()
      Description copied from interface: TreeNode
      Returns a Collection of TreeNode children of the current node
      Specified by:
      getTreeChildren in interface TreeNode
      Returns:
      Collection of TreeNode
    • getParent

      public MenuInfo getParent()
      Specified by:
      getParent in interface MenuInfo
    • isTreeNode

      public boolean isTreeNode()
      Description copied from interface: TreeNode
      Returns boolean true if the TreeNode is a node
      Specified by:
      isTreeNode in interface TreeNode
      Returns:
      boolean indicating if node is leaf or node
    • isTreeLeaf

      public boolean isTreeLeaf()
      Description copied from interface: TreeNode
      Returns boolean true if the TreeNode is a leaf
      Specified by:
      isTreeLeaf in interface TreeNode
      Returns:
      boolean indicating if node is leaf or node
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface MenuInfo
    • getMaxDepthLevel

      public int getMaxDepthLevel()
      Specified by:
      getMaxDepthLevel in interface MenuInfo
    • getDepthLevel

      public int getDepthLevel()
      Specified by:
      getDepthLevel in interface MenuInfo
    • getLink

      public String getLink()
      Specified by:
      getLink in interface MenuInfo
    • getIcon

      public String getIcon()
      Specified by:
      getIcon in interface MenuInfo
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface MenuInfo
    • getHtmlAttributes

      public String getHtmlAttributes()
      Specified by:
      getHtmlAttributes in interface MenuInfo