public class InstanceOfRowFilter<M extends javax.swing.table.TableModel,I extends java.lang.Integer> extends javax.swing.RowFilter<M,I>
instanceof
operator. Since TableModel does not necessarily
return the correct class type for a table entry, this class requires a list of the
model data being displayed in the table to be supplied in the constructor.
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
InstanceOfRowFilter(java.util.List modelData,
java.util.List<java.lang.Class> filterClasses)
Construct a RowFilter using the specified list of model data objects and the
specified list of Class objects to filter on.
|
Modifier and Type | Method and Description |
---|---|
boolean |
include(javax.swing.RowFilter.Entry<? extends M,? extends I> entry)
Returns true if the specified entry should be shown; returns false if the entry
should be hidden.
|
public InstanceOfRowFilter(java.util.List modelData, java.util.List<java.lang.Class> filterClasses)
modelData
- The model data to use for filtering.filterClasses
- The Class types to use for filtering.