public class ParameterizedWrapper extends java.lang.Object implements IParameterized, IChangeObservable
Constructor and Description |
---|
ParameterizedWrapper(IParameterized original) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(IChangeListener listener)
Adds a change listener
|
java.util.List<ITypedKey<?>> |
getAvailableParameters() |
boolean |
getBooleanValue(ITypedKey<java.lang.Boolean> key,
boolean defaultValue) |
float |
getFloatValue(ITypedKey<java.lang.Float> key,
float defaultValue) |
int |
getIntValue(ITypedKey<java.lang.Integer> key,
int defaultValue) |
protected IParameterized |
getOriginal() |
<VALUE_TYPE> |
getParameter(ITypedKey<VALUE_TYPE> key)
Gets the parameter for a defined key
|
<VALUE_TYPE> |
getParameterMandatory(ITypedKey<VALUE_TYPE> key) |
void |
removeChangeListener(IChangeListener listener)
Removes a changed listener
|
void |
setBooleanValue(ITypedKey<java.lang.Boolean> key,
boolean value) |
void |
setFloatValue(ITypedKey<java.lang.Float> key,
float value) |
void |
setIntValue(ITypedKey<java.lang.Integer> key,
int value) |
public ParameterizedWrapper(IParameterized original)
protected IParameterized getOriginal()
public void addChangeListener(IChangeListener listener)
IChangeObservable
addChangeListener
in interface IChangeObservable
listener
- The listener to addpublic void removeChangeListener(IChangeListener listener)
IChangeObservable
removeChangeListener
in interface IChangeObservable
listener
- The listener to removepublic final java.util.List<ITypedKey<?>> getAvailableParameters()
getAvailableParameters
in interface IParameterized
public final <VALUE_TYPE> IParameter<VALUE_TYPE> getParameter(ITypedKey<VALUE_TYPE> key)
IParameterized
getParameter
in interface IParameterized
key
- the key of the parameter, must not be nullpublic float getFloatValue(ITypedKey<java.lang.Float> key, float defaultValue)
public void setFloatValue(ITypedKey<java.lang.Float> key, float value)
public int getIntValue(ITypedKey<java.lang.Integer> key, int defaultValue)
public void setIntValue(ITypedKey<java.lang.Integer> key, int value)
public boolean getBooleanValue(ITypedKey<java.lang.Boolean> key, boolean defaultValue)
public void setBooleanValue(ITypedKey<java.lang.Boolean> key, boolean value)
public final <VALUE_TYPE> IParameter<VALUE_TYPE> getParameterMandatory(ITypedKey<VALUE_TYPE> key)
Siehe auch Jowidgets Nutzerhandbuch