Package jmri.jmrix.ztc.ztc611
Class ConnectionConfig
- java.lang.Object
-
- jmri.jmrix.AbstractConnectionConfig
-
- jmri.jmrix.AbstractSerialConnectionConfig
-
- jmri.jmrix.lenz.AbstractXNetSerialConnectionConfig
-
- jmri.jmrix.ztc.ztc611.ConnectionConfig
-
- All Implemented Interfaces:
ConnectionConfig
public class ConnectionConfig extends AbstractXNetSerialConnectionConfig
Handle configuring an XpressNet layout connection via a ZTC Controls ZTC611 command station.This uses the
ZTC611Adapter
class to do the actual connection.- See Also:
ZTC611Adapter
-
-
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.String
manufacturerName
-
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()
Create a connection configuration without an existing adapter.ConnectionConfig(SerialPortAdapter p)
Create a connection configuration with an existing adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getManufacturer()
java.lang.String
name()
protected void
setInstance()
Load the adapter with an appropriate object unless it's already been set.void
setManufacturer(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)
Create a connection configuration with an existing adapter.- Parameters:
p
- the associated adapter
-
ConnectionConfig
public ConnectionConfig()
Create a connection configuration without an existing adapter.
-
-
Method Detail
-
name
public java.lang.String name()
-
getManufacturer
public java.lang.String getManufacturer()
- Specified by:
getManufacturer
in interfaceConnectionConfig
- Overrides:
getManufacturer
in classAbstractSerialConnectionConfig
-
setManufacturer
public void setManufacturer(java.lang.String manu)
- Specified by:
setManufacturer
in interfaceConnectionConfig
- Overrides:
setManufacturer
in classAbstractSerialConnectionConfig
-
setInstance
protected void setInstance()
Load the adapter with an appropriate object unless it's already been set.- Specified by:
setInstance
in classAbstractSerialConnectionConfig
-
-