|
||||||||||
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.types.Unit
public abstract class Unit
The Unit
class represents a parent for unit of elements.
Field Summary | |
---|---|
protected java.lang.String |
defaultValue
The default value of the unit |
protected java.lang.String |
value
The value of the unit |
protected java.util.List<java.lang.String> |
valueList
The list of predefined values of the unit |
Constructor Summary | |
---|---|
Unit(java.util.List<java.lang.String> unitList)
|
|
Unit(java.lang.String value,
java.util.List<java.lang.String> unitList)
Initializes a newly created Unit with the specified value and predefined
units. |
Method Summary | |
---|---|
void |
assignDefaultFromValue()
Assigns the default value from value. |
abstract void |
changeValue(java.lang.String value)
|
java.lang.Object |
clone()
|
java.lang.String |
getDefaultValue()
|
java.lang.String |
getValue()
|
java.util.List<java.lang.String> |
getValueList()
|
void |
setDefault()
Sets the default value of the unit - assignes the default value to the main value. |
void |
setDefaultValue(java.lang.String defaultValue)
|
void |
setValue(java.lang.String value)
|
void |
setValueList(java.util.List<java.lang.String> values)
|
abstract void |
updateValue()
|
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 |
Field Detail |
---|
protected java.lang.String value
protected java.lang.String defaultValue
protected java.util.List<java.lang.String> valueList
Constructor Detail |
---|
public Unit(java.lang.String value, java.util.List<java.lang.String> unitList)
Unit
with the specified value and predefined
units. The value
argument is the value of the unit. The unitList
is a list of predefined units.
value
- a value of the unit.unitList
- a list of predefined units.public Unit(java.util.List<java.lang.String> unitList)
Method Detail |
---|
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
public void setDefault()
public java.lang.String getValue()
public abstract void updateValue()
public abstract void changeValue(java.lang.String value)
public java.lang.Object clone()
clone
in class java.lang.Object
public void assignDefaultFromValue()
public java.util.List<java.lang.String> getValueList()
public void setValueList(java.util.List<java.lang.String> values)
public void setValue(java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |