Package jmri.jmrix
Class CaptiveSystemConnectionMemo
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrix.DefaultSystemConnectionMemo
jmri.jmrix.CaptiveSystemConnectionMemo
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider,Disposable,SystemConnectionMemo
For historical reasons, some NamedBean types have out-of-pattern system prefixes:
- OBlocks use O (as in OB)
- RailCom tags use R
- Transponding tags use L
SystemConnectionMemo implementation is meant to handle these
by providing connection memo services without being connected to a particular system
instantiation.
An object of this class does not get registered
with the InstanceManager and is likely to have a system prefix
and user name that conflict with the default values of another, user
controllable, manager.
This SystemConnectionMemo is not intended to be
invoked on any system connection that is configurable by the user.
Note that this is handled as a special case in
DefaultSystemConnectionMemo.
Though not deprecated per se, this should not be used in new code. Instead.
please use an InternalSystemConnectionMemo.
-
Field Summary
Fields inherited from class jmri.jmrix.DefaultSystemConnectionMemo
classObjectMapFields inherited from class jmri.beans.Bean
propertyChangeSupportFields inherited from interface jmri.SystemConnectionMemo
DEREGISTER, DISABLED, INTERVAL, STORE, SYSTEM_PREFIX, USER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceBundle<B extends NamedBean>
Comparator<B>getNamedBeanComparator(Class<B> type) Get the Comparator to be used for two NamedBeans.voidregister()Register with the SystemConnectionMemoManager and InstanceManager with proper ID for later retrieval as a generic system.Methods inherited from class jmri.jmrix.DefaultSystemConnectionMemo
deregister, dispose, get, getActionFactory, getConsistManager, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, setConsistManager, setDisabled, setOutputInterval, setSystemPrefix, setUserName, storeMethods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
CaptiveSystemConnectionMemo
-
-
Method Details
-
getActionModelResourceBundle
- Specified by:
getActionModelResourceBundlein classDefaultSystemConnectionMemo
-
getNamedBeanComparator
Description copied from class:DefaultSystemConnectionMemoGet the Comparator to be used for two NamedBeans. This is typically anNamedBeanComparator, but may be any Comparator that works for this connection type.- Specified by:
getNamedBeanComparatorin interfaceSystemConnectionMemo- Specified by:
getNamedBeanComparatorin classDefaultSystemConnectionMemo- Type Parameters:
B- the type of NamedBean- Parameters:
type- the class of NamedBean- Returns:
- the Comparator
-
register
Description copied from class:DefaultSystemConnectionMemoRegister with the SystemConnectionMemoManager and InstanceManager with proper ID for later retrieval as a generic system.This operation should occur only when the SystemConnectionMemo is ready for use.
- Specified by:
registerin interfaceSystemConnectionMemo- Overrides:
registerin classDefaultSystemConnectionMemo
-