net.coderazzi.filters
Interface IFilter

All Known Implementing Classes:
AndFilter, ComposedFilter, Filter, FiltersHandler, NotFilter, OrFilter

public interface IFilter

Interface to be implemented by any instance holding a filter than can be updated dynamically.

Any change on the filter is propagated to the observers, in no prefixed order.

Author:
Luis M Pena - lu@coderazzi.net

Method Summary
 void addFilterObserver(IFilterObserver observer)
          Adds an observer to receive filter change notifications.
 boolean include(RowFilter.Entry rowEntry)
          RowFilter interface.
 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 setEnabled(boolean enable)
          Enables/Disables the filter.
 

Method Detail

include

boolean include(RowFilter.Entry rowEntry)
RowFilter interface.


isEnabled

boolean isEnabled()
Returns true if the filter is enabled.


setEnabled

void setEnabled(boolean enable)
Enables/Disables the filter.


addFilterObserver

void addFilterObserver(IFilterObserver observer)
Adds an observer to receive filter change notifications.


removeFilterObserver

void removeFilterObserver(IFilterObserver observer)
Unregisters an observer, that will not receive any further filter update notifications.