Package jmri.jmrit.signalling
Class SignallingGuiTools
- java.lang.Object
-
- jmri.jmrit.signalling.SignallingGuiTools
-
public class SignallingGuiTools extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.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.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.
-
-
-
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 dialogoldMast
- original signal mast (object) for this SMLnewMast
- 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 dialogoldMast
- signal mast (object) #1newMast
- 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 dialogmast
- 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 dialogmast
- the main signal mast (object) selected on that frame
-
-