Class Category

    • Constructor Detail

      • Category

        public Category​(ID id)
        Creates a new Category object.
      • Category

        public Category​(ID id,
                        Category parent)
        Creates a new Category object.
    • Method Detail

      • getParent

        public Category getParent()
        DOCUMENT-ME
      • setParent

        public void setParent​(Category p)
        DOCUMENT-ME
      • hasChildren

        public boolean hasChildren()
        DOCUMENT-ME
      • getChildren

        public java.util.Collection<Category> getChildren()
        DOCUMENT-ME
      • addChild

        public void addChild​(Category ic)
        DOCUMENT-ME
      • removeChild

        protected void removeChild​(Category ic)
      • hasInstances

        public boolean hasInstances()
        DOCUMENT-ME
      • getInstances

        public java.util.Collection<java.lang.Object> getInstances()
        DOCUMENT-ME
      • isInstance

        public abstract boolean isInstance​(java.lang.Object o)
        DOCUMENT-ME
      • addInstance

        public boolean addInstance​(java.lang.Object o)
        DOCUMENT-ME
      • removeInstance

        public void removeInstance​(java.lang.Object o)
        DOCUMENT-ME
      • getTopLevelAncestor

        public static Category getTopLevelAncestor​(Category i)
        Ascends the chain of parents to the top-most element.
      • getPath

        public static Category[] getPath​(Category ic)
        Returns a path of category from the top level ancestor to ic.
      • isDescendant

        public boolean isDescendant​(Category p)
        Returns true if p is an ancestor of this category.
      • setNaturalorder

        public void setNaturalorder​(java.lang.String i)
        helper method for xml reader
      • setSortIndex

        public void setSortIndex​(int sortIndex)
        Sets the sort index of this item category indicating its natural ordering compared to other ItemCategory objects.
      • getSortIndex

        public int getSortIndex()
        Returns the sort index of this item category indicating its natural ordering compared to other ItemCategory objects.
      • getIconName

        public java.lang.String getIconName()
        Returns the file name of the icon to use for this item.
      • setIconName

        public void setIconName​(java.lang.String iName)
        Sets the file name of the icon to use for this item.