Package jmri.jmrit.throttle
Interface FunctionListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
FunctionPanel
,LearnFunctionPanel
public interface FunctionListener extends java.util.EventListener
A Listener for a function state change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notifyFunctionLockableChanged(int functionNumber, boolean isLockable)
Get notification that a function's lockable status has changed.void
notifyFunctionStateChanged(int functionNumber, boolean isOn)
Receive notification that a function has changed state.
-
-
-
Method Detail
-
notifyFunctionStateChanged
void notifyFunctionStateChanged(int functionNumber, boolean isOn)
Receive notification that a function has changed state.- Parameters:
functionNumber
- The id of the functionisOn
- True if the function is activated, false otherwise.
-
notifyFunctionLockableChanged
void notifyFunctionLockableChanged(int functionNumber, boolean isLockable)
Get notification that a function's lockable status has changed.- Parameters:
functionNumber
- The function that has changed (0-9).isLockable
- True if the function is now Lockable (continuously active).
-
-