|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coderazzi.filters.artifacts.RowFilter net.coderazzi.filters.Filter net.coderazzi.filters.ComposedFilter
public abstract class ComposedFilter
Abstract parent class to support the composition of multiple filters.
The exact composition semantics (and / or / not) are not defined.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.coderazzi.filters.artifacts.RowFilter |
---|
RowFilter.Entry |
Field Summary | |
---|---|
protected Set<IFilter> |
filters
Set of associated IFilters. |
Constructor Summary | |
---|---|
protected |
ComposedFilter()
Default constructor. |
protected |
ComposedFilter(IFilter... observables)
Constructor built up out of one or more IFilter instances. |
Method Summary | |
---|---|
void |
addFilter(IFilter... filtersToAdd)
Subscribes one or more IFilter instances to
receive filter events from this composition filter. |
void |
filterUpdated(IFilter filter)
Notification made by the observer when the associated IFilter instance updates the held filter. |
Set<IFilter> |
getFilters()
Returns all IFilter instances previously
added. |
protected boolean |
isDisabled(IFilter filter)
Returns true if there is information of this filter as disabled. |
void |
removeFilter(IFilter... filtersToRemove)
Unsubscribes one or more IFilter s that were
previously subscribed to receive filter events. |
void |
setEnabled(boolean enable)
Enables/Disables the filter. |
Methods inherited from class net.coderazzi.filters.Filter |
---|
addFilterObserver, getFilterObservers, isEnabled, removeFilterObserver, reportFilterUpdatedToObservers |
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 |
Field Detail |
---|
protected Set<IFilter> filters
Constructor Detail |
---|
protected ComposedFilter()
protected ComposedFilter(IFilter... observables)
IFilter
instances.
Method Detail |
---|
public void addFilter(IFilter... filtersToAdd)
IFilter
instances to
receive filter events from this composition filter.
public void removeFilter(IFilter... filtersToRemove)
IFilter
s that were
previously subscribed to receive filter events.
public Set<IFilter> getFilters()
IFilter
instances previously
added.
public void filterUpdated(IFilter filter)
IFilterObserver
Notification made by the observer when the associated IFilter
instance updates the held filter.
filterUpdated
in interface IFilterObserver
public void setEnabled(boolean enable)
IFilter
setEnabled
in interface IFilter
setEnabled
in class Filter
IFilter.setEnabled(boolean)
protected boolean isDisabled(IFilter filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |