jmri.jmrit.throttle
Interface AddressListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
BackgroundPanel, ControlPanel, FunctionPanel, ThrottleFrame, ThrottlesListPanel

public interface AddressListener
extends EventListener

Interface for classes that wish to get notification that a new decoder address has been selected.

Author:
glen Copyright (C) 2002

Method Summary
 void notifyAddressChosen(int newAddress, boolean isLong)
          Receive notification that a new address has been selected.
 void notifyAddressReleased(int address, boolean isLong)
          Receive notification that an address has been released/dispatched
 void notifyAddressThrottleFound(DccThrottle throttle)
          Receive notification that a throttle has been found
 

Method Detail

notifyAddressChosen

void notifyAddressChosen(int newAddress,
                         boolean isLong)
Receive notification that a new address has been selected.

Parameters:
newAddress - The address that is now selected.

notifyAddressReleased

void notifyAddressReleased(int address,
                           boolean isLong)
Receive notification that an address has been released/dispatched

Parameters:
address - The address released/dispatched

notifyAddressThrottleFound

void notifyAddressThrottleFound(DccThrottle throttle)
Receive notification that a throttle has been found

Parameters:
throttle - The throttle


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