|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
cz.zcu.fav.kiv.editor.beans.common.GeneralElement
cz.zcu.fav.kiv.editor.beans.properties.Attribute
public class Attribute
The Attribute
class represents an atribute of property.
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 |
---|
public Attribute(java.lang.String name)
public Attribute(java.lang.String name, TypeAttr type)
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.
name
- a name of attribute.type
- a type of attribute.Method Detail |
---|
public java.lang.Boolean isChosen()
public void setChosen(java.lang.Boolean isChosen)
chosen
parameter according the input argument and assignes
the value to the temporaryChosen
.
isChosen
- a value specifying whether the attribute is chosen or not.public void setChosen()
public void changeChosen(java.lang.Boolean isChosen)
temporaryChosen
parameter according the input argument.
isChosen
- a value specifying whether the attribute is chosen or not.public java.lang.Object clone()
clone
in class java.lang.Object
public void clearValues()
public void setValuesFromTemporary()
chosen
after
temporaryChosen
.
public void setType(TypeAttr type)
public TypeAttr getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |