Package jmri.jmrix.easydcc.networkdriver
Class ConnectionConfig
java.lang.Object
jmri.jmrix.AbstractConnectionConfig
jmri.jmrix.AbstractNetworkConnectionConfig
jmri.jmrix.easydcc.networkdriver.ConnectionConfig
- All Implemented Interfaces:
ConnectionConfig
Definition of objects to handle configuring an EasyDCC layout connection via
a NetworkDriverAdapter object.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrix.AbstractConnectionConfig
AbstractConnectionConfig.Option -
Field Summary
Fields inherited from class jmri.jmrix.AbstractNetworkConnectionConfig
adapter, adNameField, adNameFieldLabel, hostNameField, hostNameFieldLabel, init, intervalSpinner, outputIntervalLabel, outputIntervalReset, outputIntervalSpinner, portField, portFieldLabel, serviceTypeField, serviceTypeFieldLabel, showAutoConfigFields inherited from class jmri.jmrix.AbstractConnectionConfig
_details, additionalItems, cL, connectionNameField, connectionNameLabel, cR, gbLayout, NUMOPTIONS, options, showAdvanced, systemPrefixField, systemPrefixLabel -
Constructor Summary
ConstructorsConstructorDescriptionCtor for a connection configuration with no preexisting adapter.Ctor for an object being created during load process; Swing init is deferred. -
Method Summary
Methods inherited from class jmri.jmrix.AbstractNetworkConnectionConfig
addStandardDetails, checkInitDone, checkOptionValueValidity, dispose, getAdapter, getConnectionName, getDisabled, getManufacturer, isAutoConfigPossible, isHostNameAdvanced, loadDetails, setAutoNetworkConfig, setDisabled, setManufacturer, showAdvancedItems, updateAdapterMethods inherited from class jmri.jmrix.AbstractConnectionConfig
addNameEntryCheckers, addStandardDetails, isDirty, isRestartRequired, register
-
Constructor Details
-
ConnectionConfig
Ctor for an object being created during load process; Swing init is deferred.- Parameters:
p- network port adapter.
-
ConnectionConfig
public ConnectionConfig()Ctor for a connection configuration with no preexisting adapter.setInstance()will fill the adapter member.
-
-
Method Details
-
name
-
getInfo
Reimplement this method to show the connected host, rather than the usual port name.- Specified by:
getInfoin interfaceConnectionConfig- Overrides:
getInfoin classAbstractNetworkConnectionConfig- Returns:
- human-readable connection information
-
setInstance
Load the adapter with an appropriate object unless it's already been set.- Specified by:
setInstancein classAbstractNetworkConnectionConfig
-
isPortAdvanced
Description copied from class:AbstractNetworkConnectionConfigDetermine whether to display port in Advanced options.Default in Abstract Net Conn Config. Abstract True.
- Overrides:
isPortAdvancedin classAbstractNetworkConnectionConfig- Returns:
- true to display port in advanced options.
-