|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.config.managers.AbstractManager
public abstract class AbstractManager
Abstract super class for all manager classes in this package.
It provides methods for other classes to register as listeners to any manager. The implementing subclasses can dispatch events and inform listeners of events occurring.
It also provides a means for the subclasses to load and save Strings in the Eclipse Preference Store.
Constructor Summary | |
---|---|
AbstractManager()
Creates a new AbstractManager. |
Method Summary | |
---|---|
void |
addEventListener(IKiemConfigEventListener listener)
Adds a new listener to this manager. |
abstract void |
load()
Load the saved data from the plugin's preference store. |
protected String |
load(String key,
String defaultValue)
Load a value from the Eclipse Preference Store. |
protected void |
notifyListeners(KiemConfigEvent event)
Notify all listeners of an event in the manager. |
protected void |
remove(String key)
Remove everything saved under this node. |
void |
removeEventListener(IKiemConfigEventListener listener)
Remove a listener from the list of listeners. |
abstract void |
save()
Saves the data inside the manager into the plugin's preference store. |
protected void |
save(String key,
String value)
Save a key,value pair to the Eclipse Preference Store. |
static void |
saveAll()
Save all managers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractManager()
Method Detail |
---|
public static void saveAll()
public void addEventListener(IKiemConfigEventListener listener)
listener
- the new listener.public void removeEventListener(IKiemConfigEventListener listener)
listener
- the listener to be removed.protected void notifyListeners(KiemConfigEvent event)
event
- the eventprotected String load(String key, String defaultValue)
key
- the key of the value to loaddefaultValue
- the default value for the property
protected void remove(String key)
key
- the key to removeprotected void save(String key, String value)
key
- the key under which to savevalue
- the value to savepublic abstract void load()
public abstract void save()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |