net.coderazzi.filters
Class Filter

java.lang.Object
  extended by net.coderazzi.filters.artifacts.RowFilter
      extended by net.coderazzi.filters.Filter
All Implemented Interfaces:
IFilter
Direct Known Subclasses:
ComposedFilter

public abstract class Filter
extends RowFilter
implements IFilter

Commodity class implementing the interface IFilter on a RowFilter.

Author:
Luis M Pena - lu@coderazzi.net

Nested Class Summary
 
Nested classes/interfaces inherited from class net.coderazzi.filters.artifacts.RowFilter
RowFilter.Entry
 
Constructor Summary
Filter()
           
 
Method Summary
 void addFilterObserver(IFilterObserver observer)
          Adds an observer to receive filter change notifications.
 Set<IFilterObserver> getFilterObservers()
          Returns all the registered IFilterObserver instances.
 boolean isEnabled()
          Returns true if the filter is enabled.
 void removeFilterObserver(IFilterObserver observer)
          Unregisters an observer, that will not receive any further filter update notifications.
 void reportFilterUpdatedToObservers()
          Method to be called by subclasses to report to the observers that the filter has changed.
 void setEnabled(boolean enable)
          Enables/Disables the filter.
 
Methods inherited from class net.coderazzi.filters.artifacts.RowFilter
include
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.coderazzi.filters.IFilter
include
 

Constructor Detail

Filter

public Filter()
Method Detail

isEnabled

public boolean isEnabled()
Description copied from interface: IFilter
Returns true if the filter is enabled.

Specified by:
isEnabled in interface IFilter
See Also:
IFilter.isEnabled()

setEnabled

public void setEnabled(boolean enable)
Description copied from interface: IFilter
Enables/Disables the filter.

Specified by:
setEnabled in interface IFilter
See Also:
IFilter.setEnabled(boolean)

addFilterObserver

public void addFilterObserver(IFilterObserver observer)
Description copied from interface: IFilter
Adds an observer to receive filter change notifications.

Specified by:
addFilterObserver in interface IFilter
See Also:
IFilter.addFilterObserver(IFilterObserver)

removeFilterObserver

public void removeFilterObserver(IFilterObserver observer)
Description copied from interface: IFilter
Unregisters an observer, that will not receive any further filter update notifications.

Specified by:
removeFilterObserver in interface IFilter
See Also:
IFilter.removeFilterObserver(IFilterObserver)

getFilterObservers

public Set<IFilterObserver> getFilterObservers()
Returns all the registered IFilterObserver instances.


reportFilterUpdatedToObservers

public void reportFilterUpdatedToObservers()
Method to be called by subclasses to report to the observers that the filter has changed.