Class BlockBossFrame

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

public class BlockBossFrame
extends JmriJFrame
Provide a GUI for configuring "Simple Signal Logic" (BlockBossLogic) objects.

Provides four panels, corresponding to the four possible modes described in BlockBossLogic, which are then selected via radio buttons in the GUI.

The four modes are:

  • Single block (s)
  • Facing point (f)
  • Trailing point main (tm)
  • Trailing point diverging (td)

The multiple-panel approach to the GUI is used to make layout easier; the code just flips from one to the other as the user selects a mode. The individual items all share data models to simplify the logic.

See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • setSignal

      public void setSignal​(SignalHead sh)
      Programmatically open the frame to edit a specific SSL by signal head.
      Parameters:
      sh - signal head of which the name should be entered in the Edit pane
    • setSignal

      public void setSignal​(String name)
      Programmatically open the frame to edit a specific SSL by signal head system name.
      Parameters:
      name - system or user name of the signal head to be entered in the Edit pane