Class LayoutTrackEditor
- java.lang.Object
-
- jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
-
- Direct Known Subclasses:
LayoutTurnoutEditor
,LayoutTurntableEditor
,PositionablePointEditor
,TrackSegmentEditor
public abstract class LayoutTrackEditor extends java.lang.Object
MVC root Editor component for LayoutTrack hierarchy objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected LayoutEditor
layoutEditor
(package private) java.util.List<java.lang.String>
sensorList
-
Constructor Summary
Constructors Constructor Description LayoutTrackEditor(LayoutEditor layoutEditor)
constructor method.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addDoneCancelButtons(javax.swing.JPanel target, javax.swing.JRootPane rp, java.awt.event.ActionListener doneCallback, java.awt.event.ActionListener cancelCallback)
abstract void
editLayoutTrack(LayoutTrackView layoutTrackView)
Launch the editor for a particular LayoutTrack-tree object.(package private) boolean
hasNxSensorPairs(LayoutBlock loBlk)
Create a list of NX sensors that refer to the current layout block.static LayoutTrackEditor
makeTrackEditor(LayoutTrack layoutTrack, LayoutEditor layoutEditor)
(package private) void
showSensorMessage()
Display a message describing the reason for the block selection combo box being disabled.
-
-
-
Field Detail
-
layoutEditor
protected final LayoutEditor layoutEditor
-
sensorList
java.util.List<java.lang.String> sensorList
-
-
Constructor Detail
-
LayoutTrackEditor
public LayoutTrackEditor(@Nonnull LayoutEditor layoutEditor)
constructor method.- Parameters:
layoutEditor
- main layout editor.
-
-
Method Detail
-
makeTrackEditor
@Nonnull public static LayoutTrackEditor makeTrackEditor(@Nonnull LayoutTrack layoutTrack, @Nonnull LayoutEditor layoutEditor)
-
editLayoutTrack
public abstract void editLayoutTrack(@Nonnull LayoutTrackView layoutTrackView)
Launch the editor for a particular LayoutTrack-tree object.- Parameters:
layoutTrackView
- the layout track view to edit.
-
addDoneCancelButtons
protected void addDoneCancelButtons(javax.swing.JPanel target, javax.swing.JRootPane rp, java.awt.event.ActionListener doneCallback, java.awt.event.ActionListener cancelCallback)
-
showSensorMessage
@InvokeOnGuiThread void 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 PanelMenu class is being used to satisfy the showInfoMessage requirement for a default manager type class.- Since:
- 4.11.2
-
hasNxSensorPairs
boolean hasNxSensorPairs(LayoutBlock loBlk)
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
-
-