Class NavItemImpl

    • Constructor Detail

      • NavItemImpl

        public NavItemImpl()
    • Method Detail

      • setId

        public void setId​(String id)
        Description copied from interface: NavItem
        Change the item's id
        Specified by:
        setId in interface NavItem
      • getName

        public String getName()
        Description copied from interface: NavItem
        The item's name
        Specified by:
        getName in interface NavItem
      • setName

        public void setName​(String name)
        Description copied from interface: NavItem
        Change the item's name
        Specified by:
        setName in interface NavItem
      • getDescription

        public String getDescription()
        Description copied from interface: NavItem
        A brief description of the item (optional, if not provided the name is used instead)
        Specified by:
        getDescription in interface NavItem
      • setDescription

        public void setDescription​(String description)
        Description copied from interface: NavItem
        Change the item's description
        Specified by:
        setDescription in interface NavItem
      • getParent

        public NavGroup getParent()
        Description copied from interface: NavItem
        Get the parent of this item (if any)
        Specified by:
        getParent in interface NavItem
        Returns:
        The item this one is a child of. Or null if this is a root item
      • setParent

        public void setParent​(NavGroup parent)
        Description copied from interface: NavItem
        Change the item's parent
        Specified by:
        setParent in interface NavItem
      • isModifiable

        public boolean isModifiable()
        Description copied from interface: NavItem
        Flag indicating if the item can be modified from a tree once added
        Specified by:
        isModifiable in interface NavItem
      • setModifiable

        public void setModifiable​(boolean modifiable)
        Description copied from interface: NavItem
        Change the item's modifiable flag
        Specified by:
        setModifiable in interface NavItem
      • accept

        public void accept​(NavItemVisitor visitor)
        Description copied from interface: NavItem
        Entry point for visitor interfaces
        Specified by:
        accept in interface NavItem
      • getContext

        public String getContext()
        Description copied from interface: NavItem
        An optional string that can be used to attach contextual information, like an external reference for instance.
        Specified by:
        getContext in interface NavItem
      • setContext

        public void setContext​(String context)
        Description copied from interface: NavItem
        Change the item's context attribute
        Specified by:
        setContext in interface NavItem
      • cloneItem

        public NavItem cloneItem()
        Description copied from interface: NavItem
        Creates a brand new copy of this item
        Specified by:
        cloneItem in interface NavItem