Package jmri.jmrit.ussctc
Class CodeButton
- java.lang.Object
-
- jmri.jmrit.ussctc.CodeButton
-
public class CodeButton extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) NamedBeanHandle<Sensor>
hButtonSensor
(package private) NamedBeanHandle<Turnout>
hPanelIndicator
(package private) Station<?,?>
station
-
Constructor Summary
Constructors Constructor Description CodeButton(java.lang.String buttonSensor, java.lang.String panelIndicator)
Create and configure
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) CodeButton
addStation(Station<?,?> station)
Configure the Station connection for this CodeButton.(package private) void
codeButtonPressed()
(package private) void
codeValueDelivered()
Code sequence done, turn off code light(package private) void
indicationComplete()
Indication sequence done, turn off code light(package private) void
indicationStart()
Indication sequence starting, turn on code light(package private) void
layoutSensorChanged(java.beans.PropertyChangeEvent e)
-
-
-
Field Detail
-
hButtonSensor
NamedBeanHandle<Sensor> hButtonSensor
-
hPanelIndicator
NamedBeanHandle<Turnout> hPanelIndicator
-
-
Constructor Detail
-
CodeButton
public CodeButton(java.lang.String buttonSensor, java.lang.String panelIndicator)
Create and configure- Parameters:
buttonSensor
- Name for Sensor that shows button presspanelIndicator
- Name of Turnout that lights panel indicator
-
-
Method Detail
-
addStation
CodeButton addStation(Station<?,?> station)
Configure the Station connection for this CodeButton.Note that
Station
normally invokes this automatically as part of its construction- Parameters:
station
- A Station instance for this panel- Returns:
- This CodeButton object to permit call linking
-
layoutSensorChanged
void layoutSensorChanged(java.beans.PropertyChangeEvent e)
-
codeButtonPressed
void codeButtonPressed()
-
codeValueDelivered
void codeValueDelivered()
Code sequence done, turn off code light
-
indicationStart
void indicationStart()
Indication sequence starting, turn on code light
-
indicationComplete
void indicationComplete()
Indication sequence done, turn off code light
-
-