FilterObservable¶
-
public class
FilterObservable¶ Utility class maintaining a list of
FilterObserverinstances 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
trueif 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
nullaction – 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
trueif the observer was previously registered and is now unregistered