Class SideNavMenuItem


  • public class SideNavMenuItem
    extends Object
    Since:
    2.0
    Author:
    Christophe Friederich
    • Constructor Detail

      • SideNavMenuItem

        public SideNavMenuItem()
        Default constructor.
    • Method Detail

      • getName

        public String getName()
        Returns:
        Returns the name of item menu.
      • withName

        public SideNavMenuItem withName​(String name)
        Parameters:
        name - the name of item menu
        Returns:
        Returns the fluent instance.
      • getParent

        public String getParent()
        Returns:
        Returns the name of parent page.
      • withParent

        public SideNavMenuItem withParent​(String parent)
        Parameters:
        parent - the name of parent page
        Returns:
        Returns the fluent instance.
      • getHref

        public String getHref()
        Returns:
        Returns the link associated to this item menu.
      • withHref

        public SideNavMenuItem withHref​(String href)
        Parameters:
        href - the link to use.
        Returns:
        Returns the fluent instance.
      • getSlugName

        public String getSlugName()
        Returns:
        Returns the String representing the slugged link associate to this menu item.
      • withSlugName

        public SideNavMenuItem withSlugName​(String slugName)
        Parameters:
        slugName - the slugged name.
        Returns:
        Returns the fluent instance.
      • getIcon

        public String getIcon()
        Returns:
        Returns the icon to use.
      • withIcon

        public SideNavMenuItem withIcon​(String icon)
        Sets the icon associate to.
        Parameters:
        icon - the icon to use.
        Returns:
        Returns the fluent instance.
      • isHasItems

        public boolean isHasItems()
        Gets the indicating whether has items.
        Returns:
        Returns true if has items, otherwise false.
      • withItems

        public SideNavMenuItem withItems​(List<SideNavMenuItem> items)
        Sets the items associate.
        Parameters:
        items - the list of items.
        Returns:
        Returns the fluent instance.