Package jmri.jmrit.ussctc
Class CodeButton
java.lang.Object
jmri.jmrit.ussctc.CodeButton
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) NamedBeanHandle<Sensor>(package private) NamedBeanHandle<Turnout>(package private) Station<?,?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) CodeButtonaddStation(Station<?, ?> station) Configure the Station connection for this CodeButton.(package private) void(package private) voidCode sequence done, turn off code light(package private) voidIndication sequence done, turn off code light(package private) voidIndication sequence starting, turn on code light(package private) void
-
Field Details
-
station
-
hButtonSensor
-
hPanelIndicator
-
-
Constructor Details
-
CodeButton
Create and configure- Parameters:
buttonSensor- Name for Sensor that shows button presspanelIndicator- Name of Turnout that lights panel indicator
-
-
Method Details
-
addStation
Configure the Station connection for this CodeButton.Note that
Stationnormally 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
-
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
-