Class SignallingGuiTools

    • Method Detail

      • updateSignalMastLogic

        public static void updateSignalMastLogic​(JmriJFrame frame,
                                                 SignalMast oldMast,
                                                 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​(JmriJFrame frame,
                                               SignalMast oldMast,
                                               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​(JmriJFrame frame,
                                                    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

        public static void removeAlreadyAssignedSignalMastLogic​(JmriJFrame frame,
                                                                SignalMast mast)
        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