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

java.lang.Object
  extended by java.util.Observable
      extended by cz.zcu.fav.kiv.editor.beans.common.GeneralElement
          extended by cz.zcu.fav.kiv.editor.beans.common.ParentParameter
              extended by cz.zcu.fav.kiv.editor.beans.parameters.Parameter
All Implemented Interfaces:
java.lang.Comparable

public class Parameter
extends ParentParameter

The Parameter class represents an element parameter.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.common.ParentParameter
chosen, description, lineNumber, purpose
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
name, node
 
Constructor Summary
Parameter(java.lang.String name)
           
Parameter(java.lang.String name, int lineNumber)
          Initializes a newly created Parameter with the specified name.
 
Method Summary
 void clearValues()
          Clear values (sets default values) of the parameter type and notify its observers.
 TypeParam getType()
           
 void setType(TypeParam type)
           
 void updateFigure()
          Update the value of the Figures associated with the parameter.
 
Methods inherited from class cz.zcu.fav.kiv.editor.beans.common.ParentParameter
compareTo, getDescription, getLineNumber, getPurpose, isChosen, setChosen, setChosen, setDescription, setPurpose
 
Methods inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
equals, getName, getNode, setName, setNode
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(java.lang.String name,
                 int lineNumber)
Initializes a newly created Parameter with the specified name. Parameter is marked as not chosen. The name argument is the name of the parameter.

Parameters:
name - a name of the parameter.

Parameter

public Parameter(java.lang.String name)
Method Detail

getType

public TypeParam getType()

setType

public void setType(TypeParam type)

clearValues

public void clearValues()
Clear values (sets default values) of the parameter type and notify its observers.

Overrides:
clearValues in class ParentParameter

updateFigure

public void updateFigure()
Update the value of the Figures associated with the parameter.