FilterObservable¶
-
public class
FilterObservable
¶ Utility class maintaining a list of
FilterObserver
instances and the required methods to notify these instances about filter changes. This class is not thread-safe.- Author
swrede, jwienke
Methods¶
addObserver¶
-
public boolean
addObserver
(FilterObserver observer)¶ If not already registered, adds this observer to the list of registered observers.
- Parameters
observer – observer to add
- Returns
true
if the observer was actually newly registered.
notifyObservers¶
-
public void
notifyObservers
(Filter filter, FilterAction action)¶ Notifies all registered observers about a change to a
Filter
.- Parameters
filter – the filter that is affected, not
null
action – the action performed to the filter, not
null
removeObserver¶
-
public boolean
removeObserver
(FilterObserver observer)¶ Removes a potentially registered observer.
- Parameters
observer – the observer to remove
- Returns
true
if the observer was previously registered and is now unregistered