Package docking.widgets.table.threaded
Class NullTableFilter<ROW_OBJECT>
java.lang.Object
docking.widgets.table.threaded.NullTableFilter<ROW_OBJECT>
- Type Parameters:
ROW_OBJECT- the type of the row of the table model using this filter
- All Implemented Interfaces:
TableFilter<ROW_OBJECT>
A table filter that represents the state of having no filter. This allows us to not have to
use
null to have multiple meanings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsRow(ROW_OBJECT rowObject) Returns true if this filter matches the given row (data)booleaninthashCode()booleanisEmpty()A method that allows filters to report that they have nothing to actually filter.booleanisSubFilterOf(TableFilter<?> tableFilter) Returns true if this filter is a more specific version of the given filter.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface docking.widgets.table.TableFilter
hasColumnFilter
-
Constructor Details
-
NullTableFilter
public NullTableFilter()
-
-
Method Details
-
acceptsRow
Description copied from interface:TableFilterReturns true if this filter matches the given row (data)- Specified by:
acceptsRowin interfaceTableFilter<ROW_OBJECT>- Parameters:
rowObject- the current row object- Returns:
- true if the element at the given row matches this filter.
-
isSubFilterOf
Description copied from interface:TableFilterReturns true if this filter is a more specific version of the given filter.For example, if this filter is a 'starts with' text filter, with the value of 'bobo', then if the given filter is also a 'starts with' filter, with a value of 'bob', then this filter is considered a sub-filter of the given sub-filter.
- Specified by:
isSubFilterOfin interfaceTableFilter<ROW_OBJECT>- Parameters:
tableFilter- the filter to check- Returns:
- true if this filter is a sub-filter of the given filter
-
isEmpty
public boolean isEmpty()Description copied from interface:TableFilterA method that allows filters to report that they have nothing to actually filter. This is useful for empty/null filters.- Specified by:
isEmptyin interfaceTableFilter<ROW_OBJECT>- Returns:
- true if this filter will not perform any filtering
-
equals
-
hashCode
public int hashCode()
-