Package jmri.jmrit.signalling
Class SignallingGuiTools
java.lang.Object
jmri.jmrit.signalling.SignallingGuiTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidremoveAlreadyAssignedSignalMastLogic(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.static booleanremoveSignalMastLogic(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.static voidswapSignalMastLogic(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.static voidupdateSignalMastLogic(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.
-
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 dialogoldMast- original signal mast (object) for this SMLnewMast- 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 dialogoldMast- signal mast (object) #1newMast- 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 dialogmast- the main signal mast (object) selected on that frame- Returns:
- true if user confirmed delete request
-
removeAlreadyAssignedSignalMastLogic
public static void removeAlreadyAssignedSignalMastLogic(@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 Mast.This is the same as removeSignalMastLogic, but with different text.
- Parameters:
frame- the frame initiating the dialogmast- the main signal mast (object) selected on that frame
-