cz.zcu.fav.kiv.editor.beans.parameters
Class TypeParam

java.lang.Object
  extended by java.util.Observable
      extended by cz.zcu.fav.kiv.editor.beans.types.Type
          extended by cz.zcu.fav.kiv.editor.beans.parameters.TypeParam
All Implemented Interfaces:
java.lang.Cloneable

public class TypeParam
extends Type

The TypeParam class represents a type of parameter.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.types.Type
defaultValue, name, unit, value
 
Constructor Summary
TypeParam(Parameter param)
          Initializes a newly created TypeParam with reference to the appropriate parameter.
 
Method Summary
 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.
 
Methods inherited from class cz.zcu.fav.kiv.editor.beans.types.Type
assignDefaultFromValue, clone, getDefaultValue, getKeyFromValue, getName, getUnit, getValue, getValueList, setDefaultValue, setLoadedValue, setName, setUnit, setValue, setValueList
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeParam

public TypeParam(Parameter param)
Initializes a newly created TypeParam with reference to the appropriate parameter.

Parameters:
param - a reference to the type parameter.
Method Detail

changeValue

public void changeValue(java.lang.String value)
Sets the new value of the type, marks the parameter as chosen and update parameter graphics figures.

Specified by:
changeValue in class Type
Parameters:
value - a new value of the type.

updateValue

public void updateValue()
Sets the new value of the type and notifies its observers.

Specified by:
updateValue in class Type

setDefault

public void setDefault()
Sets the default value of the type and its unit. Notifies its observers.

Overrides:
setDefault in class Type

getOwnerName

public java.lang.String getOwnerName()
Description copied from class: Type
Return the name of the owner element - parameter or attribute.

Specified by:
getOwnerName in class Type