Package jmri.jmrix
Interface ConnectionConfig
-
- All Known Subinterfaces:
StreamConnectionConfig
- All Known Implementing Classes:
AbstractConnectionConfig,AbstractDCCppSerialConnectionConfig,AbstractNetworkConnectionConfig,AbstractSerialConnectionConfig,AbstractSimulatorConnectionConfig,AbstractStreamConnectionConfig,AbstractUsbConnectionConfig,AbstractXNetSerialConnectionConfig,AnymaDMX_ConnectionConfig,CanisbConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,ConnectionConfig,DCCppStreamConnectionConfig,IpocsConnectionConfig,LnStreamConnectionConfig,MarklinSimConnectionConfig,MergConnectionConfig,MqttConnectionConfig,PiSprog3ConnectionConfig,PiSprog3PlusConnectionConfig,PiSprog3v2ConnectionConfig,RaspberryPiConnectionConfig,RaspberryPiSimulatorConnectionConfig,RfidStreamConnectionConfig,Sprog3PlusConnectionConfig,SprogCSStreamConnectionConfig,XNetStreamConnectionConfig,Z21SimulatorConnectionConfig,Z21XNetConnectionConfig
public interface ConnectionConfig
Interface for objects that handle configuring a layout connection.General design documentation is available on the Structure of External System Connections page.
- See Also:
JmrixConfigPane,PortAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Done with this ConnectionConfig object.PortAdaptergetAdapter()java.lang.StringgetConnectionName()booleangetDisabled()java.lang.StringgetInfo()java.lang.StringgetManufacturer()booleanisDirty()Determine if configuration needs to be written to disk.booleanisRestartRequired()Determine if application needs to be restarted for configuration changes to be applied.voidloadDetails(javax.swing.JPanel details)Load the Swing widgets needed to configure this connection into a specified JPanel.java.lang.Stringname()voidregister()Register the ConnectionConfig with the running JMRI process.voidsetDisabled(boolean disabled)voidsetManufacturer(java.lang.String Manufacturer)
-
-
-
Method Detail
-
name
java.lang.String name()
-
getInfo
java.lang.String getInfo()
-
getAdapter
PortAdapter getAdapter()
-
getConnectionName
java.lang.String getConnectionName()
-
getManufacturer
java.lang.String getManufacturer()
-
setManufacturer
void setManufacturer(java.lang.String Manufacturer)
-
loadDetails
void loadDetails(javax.swing.JPanel details)
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.- Parameters:
details- the specific Swing object to be configured and filled
-
register
void register()
Register the ConnectionConfig with the running JMRI process.At a minimum, is responsible for:
- Registering this object with the ConfigurationManager for persistance, typically at the "Preferences" level
- Adding this object to the default (@link ConnectionConfigManager}
-
dispose
void dispose()
Done with this ConnectionConfig object. Invoked inJmrixConfigPanewhen switching away from this particular mode.
-
getDisabled
boolean getDisabled()
-
setDisabled
void setDisabled(boolean disabled)
-
isDirty
boolean isDirty()
Determine if configuration needs to be written to disk.- Returns:
- true if configuration needs to be saved, false otherwise
-
isRestartRequired
boolean isRestartRequired()
Determine if application needs to be restarted for configuration changes to be applied.- Returns:
- true if application needs to restart, false otherwise
-
-