org.jdesktop.swingx.sort
Class RowFilters.GeneralFilter

java.lang.Object
  extended by javax.swing.RowFilter<Object,Object>
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.RowFilter
RowFilter.ComparisonType, RowFilter.Entry<M,I>
 
Constructor Summary
protected RowFilters.GeneralFilter(int... columns)
           
 
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 javax.swing.RowFilter
andFilter, dateFilter, notFilter, numberFilter, orFilter, regexFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowFilters.GeneralFilter

protected RowFilters.GeneralFilter(int... columns)
Method Detail

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.