jmri.jmrix
Class AbstractConnectionConfig

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

Author:
Bob Jacobsen Copyright (C) 2001, 2003

Field Summary
protected  JPanel _details
           
protected  String connectionName
           
protected  JTextField connectionNameField
           
protected  JLabel connectionNameLabel
           
protected static Logger log
           
protected  int NUMOPTIONS
           
protected  JComboBox opt1Box
           
protected  JLabel opt1BoxLabel
           
protected  String[] opt1List
           
protected  JComboBox opt2Box
           
protected  JLabel opt2BoxLabel
           
protected  String[] opt2List
           
protected  UserPreferencesManager pref
           
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
abstract  String getConnectionName()
           
abstract  boolean getDisabled()
           
abstract  String getInfo()
           
abstract  String getManufacturer()
           
 boolean isOptList1Advanced()
           
 boolean isOptList2Advanced()
           
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)
           
 
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, name
 

Field Detail

pref

protected final UserPreferencesManager pref

opt1Box

protected JComboBox opt1Box

opt1BoxLabel

protected JLabel opt1BoxLabel

opt2Box

protected JComboBox opt2Box

opt2BoxLabel

protected JLabel opt2BoxLabel

showAdvanced

protected JCheckBox showAdvanced

opt1List

protected String[] opt1List

opt2List

protected String[] opt2List

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

NUMOPTIONS

protected int NUMOPTIONS

log

protected static 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

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

isOptList1Advanced

public boolean isOptList1Advanced()

isOptList2Advanced

public boolean isOptList2Advanced()

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 - 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