Package se.datadosen.jalbum
Class CategoryCounters
java.lang.Object
se.datadosen.jalbum.CategoryCounters
- Direct Known Subclasses:
RejectCounterFilter
Collection of counters representing the frequency of different object categories
- Since:
- 11.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(CategoryCounters cnt) void
void
addPropertyChangeListener
(Category category, PropertyChangeListener listener) protected void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for Object properties.int
int
int
void
Removes a PropertyChangeListener from the listener list.toString()
-
Constructor Details
-
CategoryCounters
public CategoryCounters() -
CategoryCounters
Copy constructor- Parameters:
original
-- Since:
- 33.2
-
-
Method Details
-
increase
-
add
-
add
-
getCount
- 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
-
addPropertyChangeListener
-
removePropertyChangeListener
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
-
firePropertyChange
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 changedoldValue
- the property's previous valuenewValue
- the property's new value
-