public abstract class Filter extends RowFilter implements IFilter
RowFilter.ComparisonType, RowFilter.Entry<M,I>
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
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.
|
andFilter, dateFilter, include, notFilter, numberFilter, orFilter, regexFilter
public boolean isEnabled()
IFilter
isEnabled
in interface IFilter
IFilter.isEnabled()
public void setEnabled(boolean enable)
IFilter
setEnabled
in interface IFilter
IFilter.setEnabled(boolean)
public void addFilterObserver(IFilterObserver observer)
IFilter
addFilterObserver
in interface IFilter
IFilter.addFilterObserver(IFilterObserver)
public void removeFilterObserver(IFilterObserver observer)
IFilter
removeFilterObserver
in interface IFilter
IFilter.removeFilterObserver(IFilterObserver)
public Set<IFilterObserver> getFilterObservers()
IFilterObserver
instances.public void reportFilterUpdatedToObservers()