Package jmri.jmrit.beantable.signalmast
Class TurnoutSignalMastAddPane.TurnoutAspectPanel
- java.lang.Object
-
- jmri.jmrit.beantable.signalmast.TurnoutSignalMastAddPane.TurnoutAspectPanel
-
- Enclosing class:
- TurnoutSignalMastAddPane
class TurnoutSignalMastAddPane.TurnoutAspectPanel extends java.lang.Object
JPanel to define properties of an Aspect for a Turnout Signal Mast.Invoked from the AddSignalMastPanel class when a Turnout Signal Mast is selected.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
aspect
(package private) BeanSelectCreatePanel<Turnout>
beanBox
(package private) javax.swing.JCheckBox
disabledCheck
(package private) javax.swing.JPanel
panel
(package private) javax.swing.JComboBox<java.lang.String>
turnoutState
(package private) javax.swing.JLabel
turnoutStateLabel
-
Constructor Summary
Constructors Constructor Description TurnoutAspectPanel(java.lang.String aspect)
TurnoutAspectPanel(java.lang.String turnoutName, int state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) javax.swing.JPanel
getPanel()
(package private) NamedBean
getTurnout()
(package private) java.lang.String
getTurnoutName()
(package private) int
getTurnoutState()
(package private) boolean
isAspectDisabled()
(package private) void
setAspectDisabled(boolean boo)
(package private) void
setReference(java.lang.String reference)
Store the mast name as comment in the turnout.(package private) void
setSelectedTurnout(java.lang.String name)
(package private) void
setTurnoutState(int state)
-
-
-
Field Detail
-
beanBox
BeanSelectCreatePanel<Turnout> beanBox
-
disabledCheck
javax.swing.JCheckBox disabledCheck
-
turnoutStateLabel
javax.swing.JLabel turnoutStateLabel
-
turnoutState
javax.swing.JComboBox<java.lang.String> turnoutState
-
aspect
java.lang.String aspect
-
panel
javax.swing.JPanel panel
-
-
Constructor Detail
-
TurnoutAspectPanel
TurnoutAspectPanel(java.lang.String aspect)
-
TurnoutAspectPanel
TurnoutAspectPanel(java.lang.String turnoutName, int state)
-
-
Method Detail
-
setReference
void setReference(java.lang.String reference)
Store the mast name as comment in the turnout.- Parameters:
reference
- Text to use as comment
-
getTurnoutState
int getTurnoutState()
-
setSelectedTurnout
void setSelectedTurnout(java.lang.String name)
-
setTurnoutState
void setTurnoutState(int state)
-
setAspectDisabled
void setAspectDisabled(boolean boo)
-
isAspectDisabled
boolean isAspectDisabled()
-
getTurnoutName
java.lang.String getTurnoutName()
-
getTurnout
NamedBean getTurnout()
-
getPanel
javax.swing.JPanel getPanel()
-
-