Class MessageRowFilter

java.lang.Object
javax.swing.RowFilter<MessageModel,Integer>
org.ka2ddo.yaac.gui.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
  • Constructor Details

    • MessageRowFilter

      public MessageRowFilter()
  • Method Details

    • include

      public boolean 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.

      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<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

      public boolean include(MessageModel 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<MessageModel>
      Parameters:
      model - the model object containing all the data to be filtered
      index - the int index into the model specifying which record should be tested
      Returns:
      true if the record should be shown