JIDE 3.5.15

com.jidesoft.filter
Class MultipleFilters

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter
      extended by com.jidesoft.filter.MultipleFilters
All Implemented Interfaces:
Filter, ObjectGrouperSupport, Serializable, Cloneable
Direct Known Subclasses:
AndFilter, OrFilter

public abstract class MultipleFilters
extends AbstractFilter

MultipleFilter is an abstract class that has a list of filters. The actual concrete class can extend it to provide the filter logic such as AND or OR on the list of filters.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
MultipleFilters()
           
MultipleFilters(Filter... filters)
           
 
Method Summary
 void addFilter(Filter filter)
          Adds a filter.
 void clearFilters()
          Removes all the existing filters.
 Object clone()
          Creates and returns a copy of the filter.
 List<Filter> getFilters()
          Gets the list of filters.
 boolean removeFilter(Filter filter)
          Removes an existing filter.
 void setFilters(List<Filter> filters)
          Sets the filters.
 
Methods inherited from class com.jidesoft.filter.AbstractFilter
addFilterListener, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getName, getObjectGrouper, getObjectGrouperName, getPreference, isEnabled, isFilterValid, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setObjectGrouper, setObjectGrouperName, setPreference, stricterThan
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.filter.Filter
isValueFiltered
 

Constructor Detail

MultipleFilters

public MultipleFilters()

MultipleFilters

public MultipleFilters(Filter... filters)
Method Detail

addFilter

public void addFilter(Filter filter)
Adds a filter.

Parameters:
filter - a new filter.

removeFilter

public boolean removeFilter(Filter filter)
Removes an existing filter.

Parameters:
filter - a filter to be removed
Returns:
true if the filter exists and is removed successfully. Otherwise false.

getFilters

public List<Filter> getFilters()
Gets the list of filters.

Returns:
the list of filters.

setFilters

public void setFilters(List<Filter> filters)
Sets the filters.

Parameters:
filters - the new list of filters.

clearFilters

public void clearFilters()
Removes all the existing filters.


clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: AbstractFilter
Creates and returns a copy of the filter.

Specified by:
clone in interface Filter
Overrides:
clone in class AbstractFilter
Returns:
a cloned copy of the filter.
Throws:
CloneNotSupportedException - if the cloning of the filter is not supported.

JIDE 3.5.15