Package org.ka2ddo.yaac.gui
Class RawPacketRowFilter
- All Implemented Interfaces:
FastRowFilter<RawPacketTableModel>
public class RawPacketRowFilter
extends RowFilter<RawPacketTableModel,Integer>
implements FastRowFilter<RawPacketTableModel>
This class provides the filtering of raw RawPacketTableModel data based on the
current settings of the filters.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.RowFilter
RowFilter.ComparisonType, RowFilter.Entry<M extends Object,
I extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
include
(RowFilter.Entry<? extends RawPacketTableModel, ? extends Integer> entry) Returns true if the specified entry should be shown; returns false if the entry should be hidden.final boolean
include
(RawPacketTableModel model, int index) 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
-
Constructor Details
-
RawPacketRowFilter
public RawPacketRowFilter()
-
-
Method Details
-
include
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. Usingentry
after the call returns results in undefined behavior.- Specified by:
include
in classRowFilter<RawPacketTableModel,
Integer> - Parameters:
entry
- a non-null
object that wraps the underlying object from the model- Returns:
- true if the entry should be shown
-
include
Returns true if the specified entry should be shown; returns false if the entry should be hidden.- Specified by:
include
in interfaceFastRowFilter<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
-