|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractConnectionConfig
jmri.jmrix.AbstractSerialConnectionConfig
jmri.jmrix.can.adapters.gridconnect.net.ConnectionConfig
public class ConnectionConfig
Definition of objects to handle configuring a connection via a NetworkDriverAdapter object.
| Field Summary | |
|---|---|
JTextField |
host
|
static String |
NAME
|
JTextField |
port
|
| Fields inherited from class jmri.jmrix.AbstractSerialConnectionConfig |
|---|
adapter, baudBox, baudBoxLabel, baudList, log, portBox, portBoxLabel |
| Fields inherited from class jmri.jmrix.AbstractConnectionConfig |
|---|
_details, connectionName, connectionNameField, connectionNameLabel, NUMOPTIONS, opt1Box, opt1BoxLabel, opt1List, opt2Box, opt2BoxLabel, opt2List, pref, showAdvanced, systemPrefix, systemPrefixField, systemPrefixLabel |
| Constructor Summary | |
|---|---|
ConnectionConfig()
Ctor for a functional Swing object with no prexisting adapter |
|
ConnectionConfig(String h,
String p,
String m)
Ctor for an object being created during load process; Swing init is deferred. |
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with a CAN net adapter connected to this port |
protected ResourceBundle |
getActionModelResourceBundle()
This is purely here for systems that do not impliement the SystemConnectionMemo Acela, CAN BUS, CMRI, Grapevine, QSI, Zimo & RPS and can be removed one they have been migrated |
String |
getInfo()
Reimplement this method to show the connected host, rather than the usual port name. |
String |
getManufacturer()
|
String |
getMode()
Access to current selected command station mode |
void |
loadDetails(JPanel details)
|
String |
name()
|
protected void |
setInstance()
Load the adapter with an appropriate object unless its already been set. |
void |
setManufacturer(String manu)
|
| Methods inherited from class jmri.jmrix.AbstractSerialConnectionConfig |
|---|
addStandardDetails, addToActionList, checkInitDone, dispose, getAdapter, getConnectionName, getDisabled, isBaudAdvanced, isPortAdvanced, refreshPortBox, removeFromActionList, setDisabled, showAdvancedItems |
| Methods inherited from class jmri.jmrix.AbstractConnectionConfig |
|---|
isOptList1Advanced, isOptList2Advanced |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public JTextField host
public JTextField port
| Constructor Detail |
|---|
public ConnectionConfig(String h,
String p,
String m)
public ConnectionConfig()
| Method Detail |
|---|
public void configure()
public String name()
public String getManufacturer()
getManufacturer in interface ConnectionConfiggetManufacturer in class AbstractSerialConnectionConfigpublic void setManufacturer(String manu)
setManufacturer in interface ConnectionConfigsetManufacturer in class AbstractSerialConnectionConfigpublic void loadDetails(JPanel details)
loadDetails in interface ConnectionConfigloadDetails in class AbstractSerialConnectionConfigpublic String getMode()
public String getInfo()
getInfo in interface ConnectionConfiggetInfo in class AbstractSerialConnectionConfigprotected void setInstance()
AbstractSerialConnectionConfig
setInstance in class AbstractSerialConnectionConfigprotected ResourceBundle getActionModelResourceBundle()
AbstractSerialConnectionConfig
getActionModelResourceBundle in class AbstractSerialConnectionConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||