Class SprogCbusSimpleModeSwitcherFrame

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

Mode Switcher to switch modes between programmer and command station for simple hardware with a single track output.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • initComponents

      public void initComponents()
      Display radio buttons to select between Programmer mode (service mode programming) and command station mode (ops mode programming).

      Only one mode may be selected at a time.

      At least one mode must be enabled and the default is programmer mode if all modes are deselected. By default, Swing components should be created an installed in this method, rather than in the ctor itself.

      Overrides:
      initComponents in class JmriJFrame
    • closeProgrammerWarningDialogue

    • hideProgWarning

      public void hideProgWarning(boolean hide)
      Receive notification from a mode switcher dialogue to close programmer when switching modes. This so buttons correctly reflect available operations. False by default to show notifications
      Parameters:
      hide - set True to hide notifications, else False.
    • showServiceModeWarningDialogue

    • hideProgModeWarning

      public void hideProgModeWarning(boolean hide)
      Receive notification from a mode switcher dialogue to display warning message about service mode programminf. False by default to show notifications
      Parameters:
      hide - set True to hide notifications, else False.
    • setHelp

      protected void setHelp()
      Define help menu for this window.
    • dispose

      public void dispose()
      disconnect from the CBUS
      Specified by:
      dispose in interface WindowInterface
      Overrides:
      dispose in class SprogCbusModeSwitcherFrame