cz.zcu.fav.kiv.editor.beans.properties
Class TypeAttr

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.properties.TypeAttr
All Implemented Interfaces:
java.lang.Cloneable

public class TypeAttr
extends Type

The TypeAttr class represents a type of attribute.

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
TypeAttr()
          Initializes a newly created empty TypeAttr.
 
Method Summary
 void changeValue(java.lang.String value)
          Sets the new value of the type (standard and temporary value) and marks the attribute as chosen.
 java.lang.String getOwnerName()
          Return the name of the owner element - parameter or attribute.
 void setAttr(Attribute attr)
           
 void setDefault()
          Sets the default and temporary value of the type and its unit.
 void setValuesFromTemporary()
          Sets values of the type and its unit after their temporary values.
 void updateValue()
          Sets the new temporary value of the type.
 
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

TypeAttr

public TypeAttr()
Initializes a newly created empty TypeAttr.

Method Detail

setValuesFromTemporary

public void setValuesFromTemporary()
Sets values of the type and its unit after their temporary values.


changeValue

public void changeValue(java.lang.String value)
Sets the new value of the type (standard and temporary value) and marks the attribute as chosen.

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

updateValue

public void updateValue()
Sets the new temporary value of the type.

Specified by:
updateValue in class Type

setAttr

public void setAttr(Attribute attr)

setDefault

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

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