Package jmri.jmrit

Class DccLocoAddressSelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DccLocoAddressSelector
extends JPanel
Tool for selecting short/long address for DCC throttles. This is made more complex because we want it to appear easier. Some DCC systems allow addresses like 112 to be either long (extended) or short; others default to one or the other.

When locked (the default), the short/long selection is forced to stay in synch with what's available from the current ThrottleManager. If unlocked, this can differ if it's been explicity specified via the GUI (e.g. you can call 63 a long address even if the DCC system can't actually do it right now). This is useful in decoder programming, for example, where you might be configuring a loco to run somewhere else.

See Also:
Serialized Form