T- The underlying type of Filter.
public interface MasterFilter<T extends Contextual> extends Filter
When instantiated, all appropriately typed
Filter classes should be
discovered by this class. As
disable(Class) are called on the appropriate
a stack of filters is built.
NB: this interface extends
Filter and concrete
implementations should similarly extend the interface they wrap. However,
Filter.getParent() returning the wrapped
object, it should return the head of this
NB: all wrappers should be maintained as singletons within the scope of a
MasterFilter instance, so that
enable(Class) returns the
same filter instance each time it is called.
MasterFilters are intended to be used the same way as
Filters: that is, as the wrapped component would be. However, the
Filter API does have a slightly different meaning in the context of a
|Modifier and Type||Method and Description|
Removes the specified filter from the filter stack, if present.
Inserts an instance of the indicated filter class into the filter stack.
Returns a list of all filter classes this MasterFilter can enable/disable.
Returns the top of the filter stack.
Returns the base object (below the filter stack).
Disables all enabled filters maintained by this MasterFilter.
Sets the wrapped object.
filterClass- - The type of filter to enable
filterClass- - The type of filter to disable
void setParent(Object parent)
Copyright © 2015–2017 SCIFIO. All rights reserved.