Package jmri.jmrix.lenz.ztc640
Class ConnectionConfig
- java.lang.Object
-
- jmri.jmrix.AbstractConnectionConfig
-
- jmri.jmrix.AbstractSerialConnectionConfig
-
- jmri.jmrix.lenz.AbstractXNetSerialConnectionConfig
-
- jmri.jmrix.lenz.ztc640.ConnectionConfig
-
- All Implemented Interfaces:
ConnectionConfig
public class ConnectionConfig extends AbstractXNetSerialConnectionConfig
Handle configuring an XpressNet layout connection via a ZTC Controls ZTC640 adapter.This uses the
ZTC640Adapterclass to do the actual connection.- See Also:
ZTC640Adapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.AbstractConnectionConfig
AbstractConnectionConfig.Option
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringmanufacturerName-
Fields inherited from class jmri.jmrix.AbstractSerialConnectionConfig
adapter, baudBox, baudBoxLabel, baudList, init, outputIntervalLabel, outputIntervalReset, outputIntervalSpinner, portBox, portBoxLabel
-
Fields inherited from class jmri.jmrix.AbstractConnectionConfig
_details, additionalItems, cL, connectionNameField, connectionNameLabel, cR, gbLayout, NUMOPTIONS, options, showAdvanced, systemPrefixField, systemPrefixLabel
-
-
Constructor Summary
Constructors Constructor Description ConnectionConfig()Ctor for a connection configuration with no preexisting adapter.ConnectionConfig(SerialPortAdapter p)Ctor for an object being created during load process; Swing init is deferred.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetManufacturer()java.lang.Stringname()protected voidsetInstance()Load the adapter with an appropriate object unless it's already been set.voidsetManufacturer(java.lang.String manu)-
Methods inherited from class jmri.jmrix.AbstractSerialConnectionConfig
addStandardDetails, checkInitDone, dispose, getActionModelResourceBundle, getAdapter, getConnectionName, getDisabled, getInfo, getPortFriendlyNames, getPortNames, isBaudAdvanced, isPortAdvanced, loadDetails, refreshPortBox, setDisabled, showAdvancedItems, updateAdapter, updateSerialPortNames
-
Methods inherited from class jmri.jmrix.AbstractConnectionConfig
addNameEntryCheckers, addStandardDetails, isDirty, isRestartRequired, register
-
-
-
-
Field Detail
-
manufacturerName
java.lang.String manufacturerName
-
-
Constructor Detail
-
ConnectionConfig
public ConnectionConfig(SerialPortAdapter p)
Ctor for an object being created during load process; Swing init is deferred.- Parameters:
p- serial port adapter.
-
ConnectionConfig
public ConnectionConfig()
Ctor for a connection configuration with no preexisting adapter.setInstance()will fill the adapter member.
-
-
Method Detail
-
name
public java.lang.String name()
-
getManufacturer
public java.lang.String getManufacturer()
- Specified by:
getManufacturerin interfaceConnectionConfig- Overrides:
getManufacturerin classAbstractSerialConnectionConfig
-
setManufacturer
public void setManufacturer(java.lang.String manu)
- Specified by:
setManufacturerin interfaceConnectionConfig- Overrides:
setManufacturerin classAbstractSerialConnectionConfig
-
setInstance
protected void setInstance()
Load the adapter with an appropriate object unless it's already been set.- Specified by:
setInstancein classAbstractSerialConnectionConfig
-
-