org.ka2ddo.yaac.gui
Class RawPacketRowFilter
java.lang.Object
javax.swing.RowFilter<RawPacketTableModel,java.lang.Integer>
org.ka2ddo.yaac.gui.RawPacketRowFilter
- All Implemented Interfaces:
- FastRowFilter<RawPacketTableModel>
public class RawPacketRowFilter
- extends javax.swing.RowFilter<RawPacketTableModel,java.lang.Integer>
- implements FastRowFilter<RawPacketTableModel>
This class provides the filtering of raw RawPacketTableModel data based on the
current settings of the filters.
Nested classes/interfaces inherited from class javax.swing.RowFilter |
javax.swing.RowFilter.ComparisonType, javax.swing.RowFilter.Entry<M,I> |
Method Summary |
boolean |
include(RawPacketTableModel model,
int index)
Returns true if the specified entry should be shown;
returns false if the entry should be hidden. |
boolean |
include(javax.swing.RowFilter.Entry<? extends RawPacketTableModel,? extends java.lang.Integer> entry)
Returns true if the specified entry should be shown;
returns false if the entry should be hidden. |
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 |
RawPacketRowFilter
public RawPacketRowFilter()
include
public boolean include(javax.swing.RowFilter.Entry<? extends RawPacketTableModel,? extends java.lang.Integer> entry)
- 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 javax.swing.RowFilter<RawPacketTableModel,java.lang.Integer>
- Parameters:
entry
- a non-null
object that wraps the underlying
object from the model
- Returns:
- true if the entry should be shown
include
public final boolean include(RawPacketTableModel model,
int index)
- Returns true if the specified entry should be shown;
returns false if the entry should be hidden.
- Specified by:
include
in interface FastRowFilter<RawPacketTableModel>
- Parameters:
model
- the model object containing all the data to be filteredindex
- the int index into the model specifying which record should be tested
- Returns:
- true if the record should be shown