org.jdesktop.swingx.sort
Class RowFilters.GeneralFilter
java.lang.Object
javax.swing.RowFilter<Object,Object>
org.jdesktop.swingx.sort.RowFilters.GeneralFilter
- Enclosing class:
- RowFilters
public abstract static class RowFilters.GeneralFilter
- extends RowFilter<Object,Object>
C&P from core Swing to allow subclassing.
Method Summary |
protected void |
checkIndices(int[] columns)
Throws an IllegalArgumentException if any of the values in
columns are < 0. |
boolean |
include(RowFilter.Entry<? extends Object,? extends Object> value)
Returns true if the specified entry should be shown;
returns false if the entry should be hidden. |
protected abstract boolean |
include(RowFilter.Entry<? extends Object,? extends Object> value,
int index)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowFilters.GeneralFilter
protected RowFilters.GeneralFilter(int... columns)
include
public boolean include(RowFilter.Entry<? extends Object,? extends Object> value)
- Description copied from class:
javax.swing.RowFilter
- Returns true if the specified entry should be shown;
returns false if the entry should be hidden.
The entry
argument is valid only for the duration of
the invocation. Using entry
after the call returns
results in undefined behavior.
- Specified by:
include
in class RowFilter<Object,Object>
- Parameters:
value
- a non-null
object that wraps the underlying
object from the model
- Returns:
- true if the entry should be shown
include
protected abstract boolean include(RowFilter.Entry<? extends Object,? extends Object> value,
int index)
checkIndices
protected void checkIndices(int[] columns)
- Throws an IllegalArgumentException if any of the values in
columns are < 0.