jmri.jmrix.lenz.liusbserver
Class ConnectionConfig

java.lang.Object
  extended by jmri.jmrix.AbstractConnectionConfig
      extended by jmri.jmrix.AbstractNetworkConnectionConfig
          extended by jmri.jmrix.lenz.liusbserver.ConnectionConfig
All Implemented Interfaces:
ConnectionConfig

public class ConnectionConfig
extends AbstractNetworkConnectionConfig

Handle configuring an XPressNet layout connection via a LIUSB Server.

This uses the LIUSBServerAdapter class to do the actual connection.

Author:
Paul Bender Copyright (C) 2009
See Also:
LIUSBServerAdapter

Field Summary
protected  JTextField bcastPortField
           
 
Fields inherited from class jmri.jmrix.AbstractNetworkConnectionConfig
adapter, hostNameField, hostNameFieldLabel, portField, portFieldLabel
 
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(NetworkPortAdapter p)
          Ctor for an object being created during load process; Swing init is deferred.
 
Method Summary
 String getInfo()
           
 void loadDetails(JPanel details)
           
 String name()
           
protected  void setInstance()
          Load the adapter with an appropriate object unless it has already been set.
 
Methods inherited from class jmri.jmrix.AbstractNetworkConnectionConfig
addStandardDetails, checkInitDone, dispose, getAdapter, getConnectionName, getDisabled, getManufacturer, isHostNameAdvanced, isPortAdvanced, setDisabled, setManufacturer, 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

bcastPortField

protected JTextField bcastPortField
Constructor Detail

ConnectionConfig

public ConnectionConfig(NetworkPortAdapter p)
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

name

public String name()

setInstance

protected void setInstance()
Load the adapter with an appropriate object unless it has already been set.

Specified by:
setInstance in class AbstractNetworkConnectionConfig

getInfo

public String getInfo()
Specified by:
getInfo in interface ConnectionConfig
Overrides:
getInfo in class AbstractNetworkConnectionConfig

loadDetails

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


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