Class SignallingGuiTools

java.lang.Object
jmri.jmrit.signalling.SignallingGuiTools

public class SignallingGuiTools extends Object
  • Method Details

    • updateSignalMastLogic

      public static void updateSignalMastLogic(@CheckForNull JmriJFrame frame, @Nonnull SignalMast oldMast, @Nonnull SignalMast newMast)
      Display a message to the user asking them to confirm they wish to update the Signal Mast Logic from the old signal mast to the new one.
      Parameters:
      frame - the frame initiating the dialog
      oldMast - original signal mast (object) for this SML
      newMast - new main signal mast (object) to attach to SML
    • swapSignalMastLogic

      public static void swapSignalMastLogic(@CheckForNull JmriJFrame frame, @Nonnull SignalMast oldMast, @Nonnull SignalMast newMast)
      Display a message to the user asking them to confirm they wish to update the Signal Mast Logic by swapping two signal masts.
      Parameters:
      frame - the frame initiating the dialog
      oldMast - signal mast (object) #1
      newMast - signal mast (object) #2
    • removeSignalMastLogic

      public static boolean removeSignalMastLogic(@CheckForNull JmriJFrame frame, @Nonnull SignalMast mast)
      Display a message to the user asking them to confirm they wish to remove the Signal Mast Logic for a given signal.
      Parameters:
      frame - the frame initiating the dialog
      mast - the main signal mast (object) selected on that frame
      Returns:
      true if user confirmed delete request
    • removeAlreadyAssignedSignalMastLogic

      Display a message to the user asking them to confirm they wish to remove the Signal Mast Logic for a given Signal Mast.

      This is the same as removeSignalMastLogic, but with different text.

      Parameters:
      frame - the frame initiating the dialog
      mast - the main signal mast (object) selected on that frame