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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsRow
(ROW_OBJECT rowObject) Returns true if this filter matches the given row (data)boolean
int
hashCode()
boolean
isEmpty()
A method that allows filters to report that they have nothing to actually filter.boolean
isSubFilterOf
(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, wait
Methods inherited from interface docking.widgets.table.TableFilter
hasColumnFilter
-
Constructor Details
-
NullTableFilter
public NullTableFilter()
-
-
Method Details
-
acceptsRow
Description copied from interface:TableFilter
Returns true if this filter matches the given row (data)- Specified by:
acceptsRow
in 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:TableFilter
Returns 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:
isSubFilterOf
in 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:TableFilter
A method that allows filters to report that they have nothing to actually filter. This is useful for empty/null filters.- Specified by:
isEmpty
in interfaceTableFilter<ROW_OBJECT>
- Returns:
- true if this filter will not perform any filtering
-
equals
-
hashCode
public int hashCode()
-