Class HealthMonitorGui.RowFilterByMonitorType<M extends HealthMonitorGui.MonitoredStationGettingModel>

java.lang.Object
javax.swing.RowFilter<M,Integer>
org.ka2ddo.yaac.gui.HealthMonitorGui.RowFilterByMonitorType<M>
Type Parameters:
M - specific subclass of AbstractTableModel implementing the interface
Enclosing class:
HealthMonitorGui

public static class HealthMonitorGui.RowFilterByMonitorType<M extends HealthMonitorGui.MonitoredStationGettingModel> extends RowFilter<M,Integer>
Generic table RowFilter used to allow only stations matching a particular functional category to be visible in the JTable, even though all types exist in the underlying MonitoredStationList.
See Also:
  • Constructor Details

    • RowFilterByMonitorType

      public RowFilterByMonitorType(MonitorType... matchingType)
  • Method Details

    • include

      public boolean include(RowFilter.Entry<? extends M,? 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<M extends HealthMonitorGui.MonitoredStationGettingModel,Integer>
      Parameters:
      entry - a non-null object that wraps the underlying object from the model
      Returns:
      true if the entry should be shown