jmri.jmrit.throttle
Interface FunctionListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
FunctionPanel, FunctionPanel

public interface FunctionListener
extends EventListener

A Listener for a function state change.


Method Summary
 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 function
isOn - 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).


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads