Class RawPacketRowFilter

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

    • RawPacketRowFilter

      public RawPacketRowFilter()
  • Method Details

    • include

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

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

      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 filtered
      index - the int index into the model specifying which record should be tested
      Returns:
      true if the record should be shown