public class TypeParam extends Type
TypeParam
class represents a type of parameter.defaultValue, name, unit, value
Constructor and Description |
---|
TypeParam(Parameter param)
Initializes a newly created
TypeParam with reference to the appropriate
parameter. |
Modifier and Type | Method and Description |
---|---|
void |
changeValue(java.lang.String value)
Sets the new value of the type, marks the
parameter as chosen and update
parameter graphics figures. |
java.lang.String |
getOwnerName()
Return the name of the owner element - parameter or attribute.
|
void |
setDefault()
Sets the
default value of the type and its unit. |
void |
updateValue()
Sets the new value of the type and notifies its observers.
|
assignDefaultFromValue, clone, getDefaultValue, getKeyFromValue, getName, getUnit, getValue, getValueList, setDefaultValue, setLoadedValue, setName, setUnit, setValue, setValueList
public TypeParam(Parameter param)
TypeParam
with reference to the appropriate
parameter.param
- a reference to the type parameter.public void changeValue(java.lang.String value)
parameter
as chosen and update
parameter graphics figures.changeValue
in class Type
value
- a new value of the type.public void updateValue()
updateValue
in class Type
public void setDefault()
default value
of the type and its unit. Notifies its observers.setDefault
in class Type
public java.lang.String getOwnerName()
Type
getOwnerName
in class Type