|
AROM-2_2_13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A parameter represent all information related to an entry in a parameter dialog.
Field Summary | |
static int |
BOOLEAN_TYPE
Denotes a boolean type (value is a Boolean object). |
static int |
LIST_TYPE
Denotes a list type (value is a List of string). |
static int |
OBJECT_TYPE
Denotes a object type (value is an Object). |
static int |
STRING_TYPE
Denotes a string type (value is a String object). |
Method Summary | |
void |
addListener(ParameterListener listener)
Adds a listener to this parameter. |
Constraints |
getConstraint()
Returns the constraint that value have to respect. |
Object |
getDefaultValue()
Returns the default value for this parameter. |
Object |
getInitialValue()
Returns the inital value of this parameter (value at the parameter creation). |
String |
getKey()
Returns the parameter key. |
String |
getLabel()
Returns the label related to this parameter |
int |
getType()
Returns the parameter type. |
Object |
getValue()
Returns the parameter value (the value is setted after user validation). |
Object[] |
getValues()
Returns the domain values (may be null) |
boolean |
hasConstraints()
Returns true if this parameter has a constraints object. |
boolean |
hasDomainValues()
Returns true if this parameter has a constraints object. |
boolean |
isEnable()
Indicates if this parameter enable or not. |
boolean |
isPreferenceSaved()
Returns true if value of this parameter could be saved in preferences. |
void |
removeListener(ParameterListener listener)
Removes a current listener of this parameter. |
void |
setEnable(boolean enable)
Renders this parameter enable or not. |
void |
setValue(Object value)
Set the value of this parameter. |
Field Detail |
public static final int STRING_TYPE
public static final int BOOLEAN_TYPE
public static final int LIST_TYPE
public static final int OBJECT_TYPE
Method Detail |
public String getKey()
public Object getValue()
public void setValue(Object value) throws IllegalArgumentException
IllegalArgumentException
- if new value is
null or does not respect constraint or domain valuespublic void setEnable(boolean enable)
enable
- public boolean isEnable()
public Object getDefaultValue()
public Object getInitialValue()
public String getLabel()
public Object[] getValues()
public Constraints getConstraint()
public int getType()
public boolean hasConstraints()
public boolean hasDomainValues()
public boolean isPreferenceSaved()
public void addListener(ParameterListener listener)
listener
- public void removeListener(ParameterListener listener)
listener
-
|
AROM-2_2_13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |