Package jmri.jmrix.loconet.bluetooth
Class ConnectionConfig
java.lang.Object
jmri.jmrix.AbstractConnectionConfig
jmri.jmrix.AbstractSerialConnectionConfig
jmri.jmrix.loconet.bluetooth.ConnectionConfig
- All Implemented Interfaces:
ConnectionConfig
Definition of objects to handle configuring a LocoNet Bluetooth layout
connection via a LocoNetBluetoothAdapter object.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrix.AbstractConnectionConfig
AbstractConnectionConfig.OptionNested classes/interfaces inherited from interface jmri.jmrix.ConnectionConfig
ConnectionConfig.Config -
Field Summary
Fields 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 connection configuration with no preexisting adapter.Ctor for an object being created during load process; Swing init is deferred. -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddStandardDetails(boolean incAdvanced, int i) Overrides super method to remove unnecessary ui components (baud rate) and change the label "Serial Port: " to "Bluetooth adapter: ".protected String[]This provides a method to return potentially meaningful names that are used in OS to help identify ports against Hardware.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 voidOverrides super method to remove unnecessary ui components (baud rate) and change the label "Serial Port: " to "Bluetooth adapter: ".Methods inherited from class jmri.jmrix.AbstractSerialConnectionConfig
checkInitDone, dispose, getActionModelResourceBundle, getAdapter, getConnectionName, getDisabled, getInfo, getManufacturer, isBaudAdvanced, isPortAdvanced, loadDetails, refreshPortBox, setDisabled, setManufacturer, updateAdapter, updateSerialPortNamesMethods inherited from class jmri.jmrix.AbstractConnectionConfig
addNameEntryCheckers, addStandardDetails, isDirty, isRestartRequired, registerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.jmrix.ConnectionConfig
getConfig, setConfig
-
Constructor Details
-
ConnectionConfig
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 Details
-
name
-
setInstance
Load the adapter with an appropriate object unless it's already been set.- Specified by:
setInstancein classAbstractSerialConnectionConfig
-
showAdvancedItems
Overrides super method to remove unnecessary ui components (baud rate) and change the label "Serial Port: " to "Bluetooth adapter: ".- Overrides:
showAdvancedItemsin classAbstractSerialConnectionConfig
-
addStandardDetails
Overrides super method to remove unnecessary ui components (baud rate) and change the label "Serial Port: " to "Bluetooth adapter: ".- Overrides:
addStandardDetailsin classAbstractSerialConnectionConfig
-
getPortNames
Description copied from class:AbstractSerialConnectionConfigProvide 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.
-
getPortFriendlyNames
Description copied from class:AbstractSerialConnectionConfigThis provides a method to return potentially meaningful names that are used in OS to help identify ports against Hardware.- Overrides:
getPortFriendlyNamesin classAbstractSerialConnectionConfig- Returns:
- array of friendly port names
-