jmri.jmrix
Class AbstractConnectionConfig
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GridBagLayout gbLayout
cL
GridBagConstraints cL
cR
GridBagConstraints cR
log
protected static org.slf4j.Logger log
AbstractConnectionConfig
public AbstractConnectionConfig()
- Ctor for a functional object with no prexisting adapter.
Expect that the subclass setInstance() will fill the adapter member.
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-2013 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: