Class CbusFilterFrame

All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface

public class CbusFilterFrame extends JmriJFrame
Frame to control an instance of CBUS filter to filter events. Currently used in CBUS Console + Event capture tool
See Also:
  • Field Details

  • Constructor Details

    • CbusFilterFrame

      Create a new instance of CbusFilterFrame.
      Parameters:
      console - CbusConsolePane Instance to Filter
      evCap - Event Capture Tool Instance to Filter
  • Method Details

    • title

      @Nonnull protected String title()
      Get Filter Title.
      Returns:
      Title incorporating CbusConsole or Event Capture Instance.
    • initComponents

      public void initComponents()
      By default, Swing components should be created an installed in this method, rather than in the ctor itself.
      Overrides:
      initComponents in class JmriJFrame
    • filter

      public boolean filter(@Nonnull AbstractMessage m)
      Filter a CanReply or CanMessage.
      Parameters:
      m - CanMessage or CanReply
      Returns:
      true when to apply filter, false to not filter.
    • dispose

      public void dispose()
      Description copied from class: JmriJFrame
      When window is finally destroyed, remove it from the list of windows.

      Subclasses that over-ride this method must invoke this implementation with super.dispose() right before returning.

      Specified by:
      dispose in interface WindowInterface
      Overrides:
      dispose in class JmriJFrame