|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.SystemConnectionMemo
public abstract class SystemConnectionMemo
Lightweight abstract class to denote that a system is active, and provide general information.
Objects of specific subtypes are registered in the instance manager to activate their particular system.
| Field Summary | |
|---|---|
(package private) static org.slf4j.Logger |
log
|
protected static ArrayList<String> |
sysPrefixes
|
protected static ArrayList<String> |
userNames
|
| Constructor Summary | |
|---|---|
protected |
SystemConnectionMemo(String prefix,
String userName)
|
| Method Summary | ||
|---|---|---|
static void |
addPropertyChangeListener(PropertyChangeListener l)
|
|
protected void |
addToActionList()
|
|
void |
dispose()
|
|
|
get(Class<?> T)
Does this connection provide a manager of this type? |
|
protected abstract ResourceBundle |
getActionModelResourceBundle()
|
|
boolean |
getDisabled()
|
|
String |
getSystemPrefix()
Provides access to the system prefix string. |
|
String |
getUserName()
Provides access to the system user name string. |
|
protected void |
notifyPropertyChangeListener(String property,
Object oldValue,
Object newValue)
Trigger the notification of all PropertyChangeListeners |
|
boolean |
provides(Class<?> c)
Does this connection provide a manager of this type? |
|
void |
register()
Store in InstanceManager with proper ID for later retrieval as a generic system |
|
protected void |
removeFromActionList()
|
|
static void |
removePropertyChangeListener(PropertyChangeListener l)
|
|
void |
setDisabled(boolean disabled)
|
|
boolean |
setSystemPrefix(String systemPrefix)
|
|
boolean |
setUserName(String name)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final ArrayList<String> userNames
protected static final ArrayList<String> sysPrefixes
static org.slf4j.Logger log
| Constructor Detail |
|---|
protected SystemConnectionMemo(String prefix,
String userName)
| Method Detail |
|---|
public void register()
public String getSystemPrefix()
public boolean setSystemPrefix(String systemPrefix)
public String getUserName()
public boolean setUserName(String name)
public boolean provides(Class<?> c)
public <T> T get(Class<?> T)
public void dispose()
public boolean getDisabled()
public void setDisabled(boolean disabled)
public static void removePropertyChangeListener(PropertyChangeListener l)
public static void addPropertyChangeListener(PropertyChangeListener l)
protected void notifyPropertyChangeListener(String property,
Object oldValue,
Object newValue)
protected abstract ResourceBundle getActionModelResourceBundle()
protected void addToActionList()
protected void removeFromActionList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||