Class CategoryCounters

    • Constructor Detail

      • CategoryCounters

        public CategoryCounters()
    • Method Detail

      • getCount

        public int getCount​(Category category)
        Parameters:
        category - Category to get count for
        Returns:
        Count of all objects of the specified category
      • getFileCount

        public int getFileCount()
        Returns:
        Count of all objects except folders
      • getTotalCount

        public int getTotalCount()
        Returns:
        Count of all objects, no matter the category
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.

        If listener is null, no exception is thrown and no action is performed.

        Parameters:
        listener - the PropertyChangeListener to be removed
        See Also:
        addPropertyChangeListener(java.beans.PropertyChangeListener)
      • addPropertyChangeListener

        public void addPropertyChangeListener​(Category category,
                                              java.beans.PropertyChangeListener listener)
      • firePropertyChange

        protected void firePropertyChange​(java.lang.String propertyName,
                                          java.lang.Object oldValue,
                                          java.lang.Object newValue)
        Support for reporting bound property changes for Object properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.
        Parameters:
        propertyName - the property whose value has changed
        oldValue - the property's previous value
        newValue - the property's new value