Package jmri.jmrix.bidib.serialdriver
Class ConnectionConfig
java.lang.Object
jmri.jmrix.AbstractConnectionConfig
jmri.jmrix.AbstractSerialConnectionConfig
jmri.jmrix.bidib.serialdriver.ConnectionConfig
- All Implemented Interfaces:
ConnectionConfig
Definition of objects to handle configuring a layout connection via a BiDiB
SerialDriverAdapter object.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrix.AbstractConnectionConfig
AbstractConnectionConfig.Option -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected JTextFieldprotected JLabelprotected JTextFieldprotected JLabelprotected JCheckBoxFields inherited from class jmri.jmrix.AbstractSerialConnectionConfig
adapter, baudBox, baudBoxLabel, baudList, init, outputIntervalLabel, outputIntervalReset, outputIntervalSpinner, portBox, portBoxLabelFields inherited from class jmri.jmrix.AbstractConnectionConfig
_details, additionalItems, cL, connectionNameField, connectionNameLabel, cR, gbLayout, NUMOPTIONS, options, showAdvanced, systemPrefixField, systemPrefixLabel -
Constructor Summary
ConstructorsConstructorDescriptionCtor for a functional Swing object with no existing adapterCtor for an object being created during load process; Swing init is deferred. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidComplete connection adapter initialization, adding desired options to the Connection Configuration pane.Provide a vector of valid port names, each a String.name()protected voidLoad the adapter with an appropriate object unless it's already been set.protected voidvoidMethods inherited from class jmri.jmrix.AbstractSerialConnectionConfig
addStandardDetails, dispose, getActionModelResourceBundle, getAdapter, getConnectionName, getDisabled, getInfo, getManufacturer, getPortFriendlyNames, isBaudAdvanced, isPortAdvanced, loadDetails, refreshPortBox, setDisabled, setManufacturer, updateSerialPortNamesMethods inherited from class jmri.jmrix.AbstractConnectionConfig
addNameEntryCheckers, addStandardDetails, isDirty, isRestartRequired, register
-
Field Details
-
NAME
-
useAutoScan
-
rootNodeLabel
-
rootNodeField
-
portNameFilterLabel
-
portNameFilterField
-
-
Constructor Details
-
ConnectionConfig
Ctor for an object being created during load process; Swing init is deferred.- Parameters:
p- SerialPortAdapter for existing adapter
-
ConnectionConfig
public ConnectionConfig()Ctor for a functional Swing object with no existing adapter
-
-
Method Details
-
name
-
setInstance
Load the adapter with an appropriate object unless it's already been set.- Specified by:
setInstancein classAbstractSerialConnectionConfig
-
getPortNames
Provide a vector of valid port names, each a String. This may be implemented differently in subclasses that e.g. do loopback or use a custom port-access library.- Overrides:
getPortNamesin classAbstractSerialConnectionConfig- Returns:
- Valid port names in the form used to select them later.
-
checkInitDone
Complete connection adapter initialization, adding desired options to the Connection Configuration pane. Required action: set init to true. Optional actions:- fill in connectionNameField
- add ActionListeners to config fields eg. systemPrefixField to update adapter after change by the user
- Overrides:
checkInitDonein classAbstractSerialConnectionConfig
-
showAdvancedItems
- Overrides:
showAdvancedItemsin classAbstractSerialConnectionConfig
-
updateAdapter
- Overrides:
updateAdapterin classAbstractSerialConnectionConfig
-