Package org.ka2ddo.yaac.gui
Class MessageRowFilter
- All Implemented Interfaces:
FastRowFilter<MessageModel>
public class MessageRowFilter
extends RowFilter<MessageModel,Integer>
implements FastRowFilter<MessageModel>
This class provides the filtering of raw SnifferTableModel 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 MessageModel, ? extends Integer> entry) Returns true if the specified entry should be shown; returns false if the entry should be hidden.boolean
include
(MessageModel 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
-
MessageRowFilter
public MessageRowFilter()
-
-
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<MessageModel,
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<MessageModel>
- 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
-