net.refractions.udig.ui.operations
Class AbstractOpFilter

java.lang.Object
  extended by 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

Field Summary
protected  java.util.Set<IOpFilterListener> listeners
           
 
Fields inherited from interface net.refractions.udig.ui.operations.OpFilter
FALSE, TRUE
 
Constructor Summary
AbstractOpFilter()
           
 
Method Summary
 void addListener(IOpFilterListener listener)
          Adds a listener to listen for events indicating the value has changed.
protected  void notifyListeners(java.lang.Object changed)
          Notifies listener that the value of the filter has changed.
 void removeListener(IOpFilterListener listener)
          Removes a listeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.refractions.udig.ui.operations.OpFilter
accept, canCacheResult, isBlocking
 

Field Detail

listeners

protected java.util.Set<IOpFilterListener> listeners
Constructor Detail

AbstractOpFilter

public AbstractOpFilter()
Method Detail

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.