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

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

public class Attribute
extends GeneralElement
implements java.lang.Cloneable

The Attribute class represents an atribute of property.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
name, node
 
Constructor Summary
Attribute(java.lang.String name)
           
Attribute(java.lang.String name, TypeAttr type)
          Initializes a newly created Attribute with the specified name and the type.
 
Method Summary
 void changeChosen(java.lang.Boolean isChosen)
          Sets the temporaryChosen parameter according the input argument.
 void clearValues()
          Clear values (sets default values) of the attribute types.
 java.lang.Object clone()
           
 TypeAttr getType()
           
 java.lang.Boolean isChosen()
           
 void setChosen()
           
 void setChosen(java.lang.Boolean isChosen)
          Sets the attribute chosen parameter according the input argument and assignes the value to the temporaryChosen.
 void setType(TypeAttr type)
           
 void setValuesFromTemporary()
          Sets values of all types after their temporary values.
 
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
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name)

Attribute

public Attribute(java.lang.String name,
                 TypeAttr type)
Initializes a newly created Attribute with the specified name and the type. Marks the attribute as not chosen. The name argument is the name of the attribute. The type argument is the type of attribute.

Parameters:
name - a name of attribute.
type - a type of attribute.
Method Detail

isChosen

public java.lang.Boolean isChosen()

setChosen

public void setChosen(java.lang.Boolean isChosen)
Sets the attribute chosen parameter according the input argument and assignes the value to the temporaryChosen.

Parameters:
isChosen - a value specifying whether the attribute is chosen or not.

setChosen

public void setChosen()

changeChosen

public void changeChosen(java.lang.Boolean isChosen)
Sets the temporaryChosen parameter according the input argument.

Parameters:
isChosen - a value specifying whether the attribute is chosen or not.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

clearValues

public void clearValues()
Clear values (sets default values) of the attribute types.


setValuesFromTemporary

public void setValuesFromTemporary()
Sets values of all types after their temporary values. Sets chosen after temporaryChosen.


setType

public void setType(TypeAttr type)

getType

public TypeAttr getType()