net.refractions.udig.ui.operations
Class AbstractOpFilter
java.lang.Object
net.refractions.udig.ui.operations.AbstractOpFilter
- All Implemented Interfaces:
- OpFilter
public abstract class AbstractOpFilter
- extends java.lang.Object
- implements OpFilter
Abstract implementation that can be extended by OpFilter implementers. Manages listeners primarily.
- Since:
- 1.1.0
- Author:
- Jesse
Fields inherited from interface net.refractions.udig.ui.operations.OpFilter |
FALSE, TRUE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
protected java.util.Set<IOpFilterListener> listeners
AbstractOpFilter
public AbstractOpFilter()
addListener
public void addListener(IOpFilterListener listener)
- Description copied from interface:
OpFilter
- Adds a listener to listen for events indicating the value has changed. Listeners should only be added
if
OpFilter.canCacheResult()
returns true.
- Specified by:
addListener
in interface OpFilter
- Parameters:
listener
- listener to add
removeListener
public void removeListener(IOpFilterListener listener)
- Description copied from interface:
OpFilter
- Removes a listeners
- Specified by:
removeListener
in interface OpFilter
- Parameters:
listener
- listener to remove
notifyListeners
protected void notifyListeners(java.lang.Object changed)
- Notifies listener that the value of the filter has changed.