|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.CombinationParameter
public class CombinationParameter
Describes a parameter of a combination.
Nested Class Summary | |
---|---|
static interface |
CombinationParameter.IParameterType
Honor type-specific issues. |
Field Summary | |
---|---|
static CombinationParameter.IParameterType |
BOOLEAN_TYPE
Default parameter type for booleans. |
static CombinationParameter.IParameterType |
DOUBLE_TYPE
Default parameter type for doubles. |
static CombinationParameter.IParameterType |
FLOAT_TYPE
Default parameter type for floats. |
static CombinationParameter.IParameterType |
INTEGER_TYPE
Default parameter type for integers. |
static CombinationParameter.IParameterType |
RGB_TYPE
Default parameter type for RGB color values. |
static CombinationParameter.IParameterType |
STRING_TYPE
Default parameter type for strings. |
Constructor Summary | |
---|---|
CombinationParameter(String k,
IPreferenceStore store,
String n,
String d,
Object def,
CombinationParameter.IParameterType t)
Create a new combination parameter. |
Method Summary | |
---|---|
Object |
getDefaultValue()
Get the default value of this parameter. |
String |
getDescription()
Get a readable description for this parameter. |
String |
getKey()
Get the preference key. |
String |
getName()
Get a readable name for this parameter. |
static CombinationParameter[] |
getParameters(Class<? extends ICombination> combination)
Retrieve the combination parameters from a combination class. |
IPreferenceStore |
getPreferenceStore()
Get the preference store used to save this key-value pair. |
Class<?> |
getType()
Get the type of this parameter. |
void |
initialize()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CombinationParameter.IParameterType STRING_TYPE
public static final CombinationParameter.IParameterType INTEGER_TYPE
public static final CombinationParameter.IParameterType FLOAT_TYPE
public static final CombinationParameter.IParameterType DOUBLE_TYPE
public static final CombinationParameter.IParameterType BOOLEAN_TYPE
public static final CombinationParameter.IParameterType RGB_TYPE
Constructor Detail |
---|
public CombinationParameter(String k, IPreferenceStore store, String n, String d, Object def, CombinationParameter.IParameterType t)
k
- the preference keystore
- the preference storen
- the readable named
- the readable descriptiondef
- the default valuet
- The parameter typeMethod Detail |
---|
public String getKey()
public IPreferenceStore getPreferenceStore()
public String getName()
public String getDescription()
public Class<?> getType()
public Object getDefaultValue()
public void initialize()
public static CombinationParameter[] getParameters(Class<? extends ICombination> combination)
combination
- the combination class to look in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |