Package com.macrofocus.filter
Class SimpleIndexFilter<E>
java.lang.Object
com.macrofocus.filter.AbstractFilter<E>
com.macrofocus.filter.AbstractMutableIndexFilter<E>
com.macrofocus.filter.SimpleIndexFilter<E>
- All Implemented Interfaces:
Filter<E>,MutableFilter<E>,MutableIndexFilter<E>
As long as an index hasn't been set (presumably by SubsetDataFrame), then the responsability is deferred to the
underlying input filter.
-
Field Summary
Fields inherited from class com.macrofocus.filter.AbstractMutableIndexFilter
filteredCount, index -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearFilterBy(Object locksmith) intReturns the number of elements currently filtered.booleanisActive()Indicates whether at least one element is currently filtered.booleanbooleanisFiltered(E element) Indicates whether a given element is filtered or not.booleanisFilteredBy(E element, Object locksmith) Indicates whether a given element is filtered or not by the given locksmith.voidsetEnabled(boolean enabled) voidsetFiltered(E element, boolean filtered, Object locksmith) voidsetFilteredIterable(Iterable<E> elements, boolean filtered, Object locksmith) voidMethods inherited from class com.macrofocus.filter.AbstractMutableIndexFilter
setIndexMethods inherited from class com.macrofocus.filter.AbstractFilter
addFilterListener, addWeakFilterListener, notifyFilteredChanged, removeFilterListener, removeFilterListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.macrofocus.filter.Filter
addFilterListener, addWeakFilterListener, removeFilterListener, removeFilterListeners
-
Constructor Details
-
SimpleIndexFilter
public SimpleIndexFilter()
-
-
Method Details
-
getInputFilter
-
isActive
public boolean isActive()Description copied from interface:FilterIndicates whether at least one element is currently filtered. -
getFilteredCount
public int getFilteredCount()Description copied from interface:FilterReturns the number of elements currently filtered.- Specified by:
getFilteredCountin interfaceFilter<E>- Overrides:
getFilteredCountin classAbstractMutableIndexFilter<E>- Returns:
- the number of filtered elements.
-
isFiltered
Description copied from interface:FilterIndicates whether a given element is filtered or not.- Parameters:
element- the element to be tested- Returns:
- true if the element is filtered, false otherwise
-
isEnabled
public boolean isEnabled() -
isFilteredBy
Description copied from interface:FilterIndicates whether a given element is filtered or not by the given locksmith.- Parameters:
element- the element to be testedlocksmith- the object used to filter the element- Returns:
- true if the element is filtered, false otherwise
-
setFiltered
-
setFilteredIterable
-
setFilteredState
-
clearFilter
public void clearFilter() -
clearFilterBy
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceMutableFilter<E>- Overrides:
setEnabledin classAbstractFilter<E>
-