|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kvid.datadistributor.RuntimeConfiguration
public final class RuntimeConfiguration
Class for handling configuration that happens during runtime. Will be lost if program is closed.
Field Summary | |
---|---|
static String |
ANIMATION_BEHAVIOR
Constant for getting animation behavior by name. |
static String |
ANIMATION_STATUS
Constant for getting animation status by name. |
static String |
DEBUG_MODE
Constant for getting animation status by name. |
static String |
DEFAULT_PORT
Constant for getting animation status by name. |
static String |
MAX_TOKEN_SIZE
Constant for getting maximal token size by name. |
Method Summary | |
---|---|
void |
addProperty(int where,
Property theproperty)
ONLY use this to add a new Property to the configuration when a
certain position is desired (e.g. |
void |
addProperty(Property theproperty)
ONLY use this to add a new Property to the configuration. |
void |
addPropertyListener(IPropertyListener thelistener)
Registers a new listener which will be notified when the Properties change. |
String |
currentValueOfProperty(String propertyName)
Gives the current value of a Property by it's name. |
static RuntimeConfiguration |
getInstance()
Gives the single instance of the RuntimeConfiguration. |
List<Property> |
getKnownProperties()
Getter for the list of currently known Property s. |
Property |
getProperty(String propertyName)
Getter for a property with a certain name. |
List<Property> |
getReferedProperties(List<String> selectedParts)
Getter for the list of Property s referring to the current selection. |
void |
removeProperty(Property theproperty)
Removes a Property from the list of currenty known Properties. |
void |
removePropertyListener(IPropertyListener thelistener)
Removes a listener from the listeners list. |
void |
resetToDefault()
Resets all known Properties to its' default values. |
void |
triggerPropertyChanged(Property theproperty)
Method which notifies listeners when Properties have changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ANIMATION_STATUS
public static final String ANIMATION_BEHAVIOR
public static final String DEBUG_MODE
public static final String MAX_TOKEN_SIZE
public static final String DEFAULT_PORT
Method Detail |
---|
public static RuntimeConfiguration getInstance()
public String currentValueOfProperty(String propertyName)
Property
by it's name.
propertyName
- The name of the Property
to look up
Property
public List<Property> getKnownProperties()
Property
s.
Only for display purposes, do NOT use for manipulation!
Property
spublic Property getProperty(String propertyName)
propertyName
- Name of the Property to get
public List<Property> getReferedProperties(List<String> selectedParts)
Property
s referring to the current selection.
Enter null if there is no selection to get general options.
selectedParts
- The currently selected EditParts
public void addProperty(Property theproperty)
Property
to the configuration.
Will make sure Property
names are unique.
theproperty
- The new Property
to addpublic void addProperty(int where, Property theproperty)
Property
to the configuration when a
certain position is desired (e.g. for style reasons).
Will make sure Property
names are unique.
where
- Position in the Properties list where it should be addedtheproperty
- The new Property
to addpublic void removeProperty(Property theproperty)
Property
from the list of currenty known Properties.
theproperty
- The Property
to remove from the listpublic void addPropertyListener(IPropertyListener thelistener)
thelistener
- The IPropertyListener
to addpublic void removePropertyListener(IPropertyListener thelistener)
thelistener
- The IPropertyListener
to removepublic void triggerPropertyChanged(Property theproperty)
Property
needs special handling.
theproperty
- The Property which was changedpublic void resetToDefault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |