jmri.jmrix.can.adapters.gridconnect.net
Class ConnectionConfig

java.lang.Object
  extended by jmri.jmrix.AbstractConnectionConfig
      extended by jmri.jmrix.AbstractSerialConnectionConfig
          extended by jmri.jmrix.can.adapters.gridconnect.net.ConnectionConfig
All Implemented Interfaces:
ConnectionConfig

public class ConnectionConfig
extends AbstractSerialConnectionConfig

Definition of objects to handle configuring a connection via a NetworkDriverAdapter object.

Author:
Bob Jacobsen Copyright (C) 2010

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

NAME

public static final String NAME
See Also:
Constant Field Values

host

public JTextField host

port

public JTextField port
Constructor Detail

ConnectionConfig

public ConnectionConfig(String h,
                        String p,
                        String m)
Ctor for an object being created during load process; Swing init is deferred.


ConnectionConfig

public ConnectionConfig()
Ctor for a functional Swing object with no prexisting adapter

Method Detail

configure

public void configure()
set up all of the other objects to operate with a CAN net adapter connected to this port


name

public String name()

getManufacturer

public String getManufacturer()
Specified by:
getManufacturer in interface ConnectionConfig
Overrides:
getManufacturer in class AbstractSerialConnectionConfig

setManufacturer

public void setManufacturer(String manu)
Specified by:
setManufacturer in interface ConnectionConfig
Overrides:
setManufacturer in class AbstractSerialConnectionConfig

loadDetails

public void loadDetails(JPanel details)
Specified by:
loadDetails in interface ConnectionConfig
Overrides:
loadDetails in class AbstractSerialConnectionConfig

getMode

public String getMode()
Access to current selected command station mode


getInfo

public String getInfo()
Reimplement this method to show the connected host, rather than the usual port name.

Specified by:
getInfo in interface ConnectionConfig
Overrides:
getInfo in class AbstractSerialConnectionConfig
Returns:
human-readable connection information

setInstance

protected void setInstance()
Description copied from class: AbstractSerialConnectionConfig
Load the adapter with an appropriate object unless its already been set.

Specified by:
setInstance in class AbstractSerialConnectionConfig

getActionModelResourceBundle

protected ResourceBundle getActionModelResourceBundle()
Description copied from class: AbstractSerialConnectionConfig
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

Overrides:
getActionModelResourceBundle in class AbstractSerialConnectionConfig


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads