jmri.jmrix
Class AbstractConnectionConfig

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.AbstractConnectionConfig
All Implemented Interfaces:
ConnectionConfig
Direct Known Subclasses:
AbstractNetworkConnectionConfig, AbstractSerialConnectionConfig, AbstractSimulatorConnectionConfig

public abstract class AbstractConnectionConfig
extends Object
implements ConnectionConfig

Abstract base class for common implementation of the ConnectionConfig


Nested Class Summary
protected static class AbstractConnectionConfig.Option
           
 
Field Summary
protected  JPanel _details
           
protected  ArrayList<JComponent> additionalItems
           
protected  GridBagConstraints cL
           
protected  String connectionName
           
protected  JTextField connectionNameField
           
protected  JLabel connectionNameLabel
           
protected  GridBagConstraints cR
           
protected  GridBagLayout gbLayout
           
protected static org.slf4j.Logger log
           
protected  int NUMOPTIONS
           
protected  Hashtable<String,AbstractConnectionConfig.Option> options
           
protected  UserPreferencesManager pref
           
(package private) static ResourceBundle rb
           
protected  JCheckBox showAdvanced
           
protected  String systemPrefix
           
protected  JTextField systemPrefixField
           
protected  JLabel systemPrefixLabel
           
 
Constructor Summary
AbstractConnectionConfig()
          Ctor for a functional object with no prexisting adapter.
 
Method Summary
protected  int addStandardDetails(PortAdapter adapter, boolean incAdvanced, int i)
           
(package private) abstract  void checkInitDone()
           
abstract  String getConnectionName()
           
abstract  boolean getDisabled()
           
abstract  String getInfo()
           
abstract  String getManufacturer()
           
abstract  void loadDetails(JPanel details)
           
abstract  void setDisabled(boolean disable)
           
protected abstract  void setInstance()
          Load the adapter with an appropriate object unless its already been set.
abstract  void setManufacturer(String manufacturer)
           
(package private) abstract  void showAdvancedItems()
           
abstract  void updateAdapter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.jmrix.ConnectionConfig
dispose, getAdapter, name
 

Field Detail

pref

protected final UserPreferencesManager pref

NUMOPTIONS

protected int NUMOPTIONS

showAdvanced

protected JCheckBox showAdvanced

systemPrefixLabel

protected JLabel systemPrefixLabel

connectionNameLabel

protected JLabel connectionNameLabel

systemPrefixField

protected JTextField systemPrefixField

connectionNameField

protected JTextField connectionNameField

systemPrefix

protected String systemPrefix

connectionName

protected String connectionName

_details

protected JPanel _details

options

protected Hashtable<String,AbstractConnectionConfig.Option> options

additionalItems

protected ArrayList<JComponent> additionalItems

rb

static ResourceBundle rb

gbLayout

protected GridBagLayout gbLayout

cL

protected GridBagConstraints cL

cR

protected GridBagConstraints cR

log

protected static org.slf4j.Logger log
Constructor Detail

AbstractConnectionConfig

public AbstractConnectionConfig()
Ctor for a functional object with no prexisting adapter. Expect that the subclass setInstance() will fill the adapter member.

Method Detail

checkInitDone

abstract void checkInitDone()

updateAdapter

public abstract void updateAdapter()

setInstance

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


getInfo

public abstract String getInfo()
Specified by:
getInfo in interface ConnectionConfig

loadDetails

public abstract void loadDetails(JPanel details)
Specified by:
loadDetails in interface ConnectionConfig

showAdvancedItems

abstract void showAdvancedItems()

addStandardDetails

protected int addStandardDetails(PortAdapter adapter,
                                 boolean incAdvanced,
                                 int i)

getManufacturer

public abstract String getManufacturer()
Specified by:
getManufacturer in interface ConnectionConfig

setManufacturer

public abstract void setManufacturer(String manufacturer)
Specified by:
setManufacturer in interface ConnectionConfig

getConnectionName

public abstract String getConnectionName()
Specified by:
getConnectionName in interface ConnectionConfig

getDisabled

public abstract boolean getDisabled()
Specified by:
getDisabled in interface ConnectionConfig

setDisabled

public abstract void setDisabled(boolean disable)
Specified by:
setDisabled in interface ConnectionConfig


Copyright © 1997-2014 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