Class LayoutTurnoutEditor
- java.lang.Object
-
- jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
-
- jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTurnoutEditor
-
- Direct Known Subclasses:
LayoutLHTurnoutEditor
,LayoutRHTurnoutEditor
,LayoutSlipEditor
,LayoutWyeEditor
,LayoutXOverEditor
public class LayoutTurnoutEditor extends LayoutTrackEditor
MVC Editor component for LayoutTurnout objects.
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
layoutEditor, sensorList
-
-
Constructor Summary
Constructors Constructor Description LayoutTurnoutEditor(LayoutEditor layoutEditor)
constructor method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkBlock234Changed()
protected void
configureCheckBoxes(BlockManager bm)
protected void
donePressedSecondTurnoutName(java.lang.String newName)
void
editLayoutTrack(LayoutTrackView layoutTrackView)
Edit a Layout Turnout.protected void
editLayoutTurnoutEditBlockBPressed(java.awt.event.ActionEvent a)
protected void
editLayoutTurnoutEditBlockCPressed(java.awt.event.ActionEvent a)
protected void
editLayoutTurnoutEditBlockDPressed(java.awt.event.ActionEvent a)
protected void
extendAddContinuingStateChoice(java.awt.Container contentPane)
protected void
extendBlockBCDSetup(java.awt.Container contentPane)
protected void
setContinuingRouteTurnoutState()
protected void
setUpContinuingSense()
protected void
setUpForEdit()
-
Methods inherited from class jmri.jmrit.display.layoutEditor.LayoutEditorDialogs.LayoutTrackEditor
addDoneCancelButtons, hasNxSensorPairs, makeTrackEditor, showSensorMessage
-
-
-
-
Field Detail
-
layoutTurnoutView
protected LayoutTurnoutView layoutTurnoutView
-
layoutTurnout
protected LayoutTurnout layoutTurnout
-
editLayoutTurnoutFrame
protected JmriJFrame editLayoutTurnoutFrame
-
editLayoutTurnout1stTurnoutComboBox
protected NamedBeanComboBox<Turnout> editLayoutTurnout1stTurnoutComboBox
-
editLayoutTurnout2ndTurnoutComboBox
protected NamedBeanComboBox<Turnout> editLayoutTurnout2ndTurnoutComboBox
-
editLayoutTurnout2ndTurnoutLabel
protected javax.swing.JLabel editLayoutTurnout2ndTurnoutLabel
-
editLayoutTurnoutBlockNameComboBox
protected final NamedBeanComboBox<Block> editLayoutTurnoutBlockNameComboBox
-
editLayoutTurnoutBlockBNameComboBox
protected final NamedBeanComboBox<Block> editLayoutTurnoutBlockBNameComboBox
-
editLayoutTurnoutBlockCNameComboBox
protected final NamedBeanComboBox<Block> editLayoutTurnoutBlockCNameComboBox
-
editLayoutTurnoutBlockDNameComboBox
protected final NamedBeanComboBox<Block> editLayoutTurnoutBlockDNameComboBox
-
editLayoutTurnoutStateComboBox
protected final javax.swing.JComboBox<java.lang.String> editLayoutTurnoutStateComboBox
-
editLayoutTurnoutHiddenCheckBox
protected javax.swing.JCheckBox editLayoutTurnoutHiddenCheckBox
-
editLayoutTurnoutBlockButton
protected javax.swing.JButton editLayoutTurnoutBlockButton
-
editLayoutTurnoutBlockBButton
protected javax.swing.JButton editLayoutTurnoutBlockBButton
-
editLayoutTurnoutBlockCButton
protected javax.swing.JButton editLayoutTurnoutBlockCButton
-
editLayoutTurnoutBlockDButton
protected javax.swing.JButton editLayoutTurnoutBlockDButton
-
editLayoutTurnout2ndTurnoutCheckBox
protected final javax.swing.JCheckBox editLayoutTurnout2ndTurnoutCheckBox
-
editLayoutTurnout2ndTurnoutInvertCheckBox
protected final javax.swing.JCheckBox editLayoutTurnout2ndTurnoutInvertCheckBox
-
editLayoutTurnoutOpen
protected boolean editLayoutTurnoutOpen
-
editLayoutTurnoutNeedRedraw
protected boolean editLayoutTurnoutNeedRedraw
-
editLayoutTurnoutNeedsBlockUpdate
protected boolean editLayoutTurnoutNeedsBlockUpdate
-
editLayoutTurnoutClosedIndex
protected int editLayoutTurnoutClosedIndex
-
editLayoutTurnoutThrownIndex
protected int editLayoutTurnoutThrownIndex
-
-
Constructor Detail
-
LayoutTurnoutEditor
public LayoutTurnoutEditor(@Nonnull LayoutEditor layoutEditor)
constructor method.- Parameters:
layoutEditor
- main layout editor.
-
-
Method Detail
-
editLayoutTrack
public void editLayoutTrack(@Nonnull LayoutTrackView layoutTrackView)
Edit a Layout Turnout. Invoked for any of the subtypes, has conditional code for crossovers- Specified by:
editLayoutTrack
in classLayoutTrackEditor
- Parameters:
layoutTrackView
- the layout track view to edit.
-
extendAddContinuingStateChoice
protected void extendAddContinuingStateChoice(java.awt.Container contentPane)
-
extendBlockBCDSetup
protected void extendBlockBCDSetup(java.awt.Container contentPane)
-
configureCheckBoxes
protected void configureCheckBoxes(BlockManager bm)
-
setUpForEdit
protected void setUpForEdit()
-
setUpContinuingSense
protected void setUpContinuingSense()
-
editLayoutTurnoutEditBlockBPressed
protected void editLayoutTurnoutEditBlockBPressed(java.awt.event.ActionEvent a)
-
editLayoutTurnoutEditBlockCPressed
protected void editLayoutTurnoutEditBlockCPressed(java.awt.event.ActionEvent a)
-
editLayoutTurnoutEditBlockDPressed
protected void editLayoutTurnoutEditBlockDPressed(java.awt.event.ActionEvent a)
-
donePressedSecondTurnoutName
protected void donePressedSecondTurnoutName(java.lang.String newName)
-
setContinuingRouteTurnoutState
protected void setContinuingRouteTurnoutState()
-
checkBlock234Changed
protected void checkBlock234Changed()
-
-