Class LayoutTrackEditor
java.lang.Object
jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
- Direct Known Subclasses:
LayoutTurnoutEditor,LayoutTurntableEditor,PositionablePointEditor,TrackSegmentEditor
MVC root Editor component for LayoutTrack hierarchy objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDoneCancelButtons(JPanel target, JRootPane rp, ActionListener doneCallback, ActionListener cancelCallback) abstract voideditLayoutTrack(LayoutTrackView layoutTrackView) Launch the editor for a particular LayoutTrack-tree object.(package private) booleanhasNxSensorPairs(LayoutBlock loBlk) Create a list of NX sensors that refer to the current layout block.static LayoutTrackEditormakeTrackEditor(LayoutTrack layoutTrack, LayoutEditor layoutEditor) (package private) voidDisplay a message describing the reason for the block selection combo box being disabled.
-
Field Details
-
layoutEditor
-
sensorList
-
-
Constructor Details
-
LayoutTrackEditor
constructor method.- Parameters:
layoutEditor- main layout editor.
-
-
Method Details
-
makeTrackEditor
@Nonnull public static LayoutTrackEditor makeTrackEditor(@Nonnull LayoutTrack layoutTrack, @Nonnull LayoutEditor layoutEditor) -
editLayoutTrack
Launch the editor for a particular LayoutTrack-tree object.- Parameters:
layoutTrackView- the layout track view to edit.
-
addDoneCancelButtons
protected void addDoneCancelButtons(JPanel target, JRootPane rp, ActionListener doneCallback, ActionListener cancelCallback) -
showSensorMessage
Display a message describing the reason for the block selection combo box being disabled. An option is provided to hide the message. Note: The EditorManager class is being used to satisfy the showInfoMessage requirement for a default manager type class.- Since:
- 4.11.2
-
hasNxSensorPairs
Create a list of NX sensors that refer to the current layout block. This is used to disable block selection in the edit dialog. The list is built byEntryExitPairs.layoutBlockSensors(jmri.jmrit.display.layoutEditor.LayoutBlock).- Parameters:
loBlk- The current layout block.- Returns:
- true if sensors are affected.
- Since:
- 4.11.2
-