Class ItemCategoryNodeWrapper

    • Field Detail

      • icons

        protected java.util.List<java.lang.String> icons
      • returnIcons

        protected java.util.List<java.lang.String> returnIcons
    • Constructor Detail

      • ItemCategoryNodeWrapper

        public ItemCategoryNodeWrapper​(ItemCategory category,
                                       int amount)
        Creates a new ItemCategoryNodeWrapper object (with number of items).
      • ItemCategoryNodeWrapper

        public ItemCategoryNodeWrapper​(ItemCategory category,
                                       int amount,
                                       java.lang.String _catName)
        Creates a new ItemCategoryNodeWrapper object with explicit name.
    • Method Detail

      • setAmount

        public void setAmount​(int i)
        Parameters:
        i -
      • getItemCategory

        public ItemCategory getItemCategory()
        Returns:
        The corresponding category.
      • toString

        public java.lang.String toString()
        Description copied from interface: CellObject
        This enforces the toString method
        Specified by:
        toString in interface CellObject
        Overrides:
        toString in class java.lang.Object
        Returns:
        the category name and amount (and unmodified amount)
      • createSimpleDrawPolicy

        protected NodeWrapperDrawPolicy createSimpleDrawPolicy​(java.util.Properties settings,
                                                               java.lang.String prefix)
        DOCUMENT-ME
      • setIcons

        public void setIcons​(java.util.Collection<java.lang.String> icons)
        Parameters:
        icons -
      • setIcons

        public void setIcons​(java.util.Map<?,​?> icons)
        Parameters:
        icons -
      • setIcons

        public void setIcons​(java.lang.Object icons)
        Parameters:
        icons -
      • propertiesChanged

        public void propertiesChanged()
        Description copied from interface: CellObject
        Notifies this object that the draw policy may have changed. So it may have to recalculate its appearance.
        See Also:
        CellObject.propertiesChanged()
      • getIconNames

        public java.util.List<java.lang.String> getIconNames()
        Description copied from interface: CellObject
        Returns a list of String objects that denote the file name (without the extension) of the icons to be displayed by the tree cell renderer. A return value of null is valid to indicate that no icons shall be displayed.
        Returns:
        list of icon names or null if no icons shall be displayed.
        See Also:
        CellObject.getIconNames()
      • getUnmodifiedAmount

        public int getUnmodifiedAmount()
        Returns the value of unmodifiedAmount.
        Returns:
        Returns unmodifiedAmount.
      • setUnmodifiedAmount

        public void setUnmodifiedAmount​(int unmodifiedAmount)
        Sets the value of unmodifiedAmount.
        Parameters:
        unmodifiedAmount - The value for unmodifiedAmount.