Package jmri.jmrix.pi
Class RaspberryPiConnectionConfig
java.lang.Object
jmri.jmrix.AbstractConnectionConfig
jmri.jmrix.pi.RaspberryPiConnectionConfig
- All Implemented Interfaces:
ConnectionConfig
Handle configuring a Raspberry Pi layout connection.
This uses the RaspberryPiAdapter class to do the actual connection.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrix.AbstractConnectionConfig
AbstractConnectionConfig.Option -
Field Summary
FieldsFields 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 voidComplete connection adapter initialization, adding desired options to the Connection Configuration pane.booleangetInfo()voidloadDetails(JPanel details) Load the Swing widgets needed to configure this connection into a specified JPanel.name()voidsetDisabled(boolean disable) protected voidLoad the adapter with an appropriate object unless it's already been set.voidsetManufacturer(String manufacturer) protected voidvoidMethods inherited from class jmri.jmrix.AbstractConnectionConfig
addNameEntryCheckers, addStandardDetails, dispose, isDirty, isRestartRequired, register
-
Field Details
-
init
-
manuf
-
-
Constructor Details
-
RaspberryPiConnectionConfig
Ctor for an object being created during load process; Swing init is deferred.- Parameters:
p- the pre-existing adapter
-
RaspberryPiConnectionConfig
public RaspberryPiConnectionConfig()Ctor for a connection configuration with no preexisting adapter.setInstance()will fill the adapter member.
-
-
Method Details
-
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
- Specified by:
checkInitDonein classAbstractConnectionConfig
-
updateAdapter
- Specified by:
updateAdapterin classAbstractConnectionConfig
-
showAdvancedItems
- Specified by:
showAdvancedItemsin classAbstractConnectionConfig
-
loadDetails
Load the Swing widgets needed to configure this connection into a specified JPanel. Used during the configuration process to fill out the preferences window with content specific to this Connection type. The JPanel contents need to handle their own gets/sets to the underlying Connection content.- Specified by:
loadDetailsin interfaceConnectionConfig- Specified by:
loadDetailsin classAbstractConnectionConfig- Parameters:
details- the specific Swing object to be configured and filled
-
setInstance
Load the adapter with an appropriate object unless it's already been set.- Specified by:
setInstancein classAbstractConnectionConfig
-
getAdapter
-
getInfo
- Specified by:
getInfoin interfaceConnectionConfig- Specified by:
getInfoin classAbstractConnectionConfig
-
getManufacturer
- Specified by:
getManufacturerin interfaceConnectionConfig- Specified by:
getManufacturerin classAbstractConnectionConfig
-
setManufacturer
- Specified by:
setManufacturerin interfaceConnectionConfig- Specified by:
setManufacturerin classAbstractConnectionConfig
-
name
-
getConnectionName
- Specified by:
getConnectionNamein interfaceConnectionConfig- Specified by:
getConnectionNamein classAbstractConnectionConfig
-
getDisabled
- Specified by:
getDisabledin interfaceConnectionConfig- Specified by:
getDisabledin classAbstractConnectionConfig
-
setDisabled
- Specified by:
setDisabledin interfaceConnectionConfig- Specified by:
setDisabledin classAbstractConnectionConfig
-