public abstract class AbstractValue<T> extends java.lang.Object implements java.lang.Comparable<T>, XMLPersistent
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractValue.ValueChangeListener<T> |
Constructor and Description |
---|
AbstractValue() |
AbstractValue(T value) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(AbstractValue.ValueChangeListener<T> listener) |
abstract T |
getDefaultValue() |
T |
getValue() |
abstract boolean |
loadFromString(java.lang.String s) |
void |
loadFromString(java.lang.String s,
T def) |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
void |
removeListener(AbstractValue.ValueChangeListener<T> listener) |
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setValue(T value) |
public AbstractValue(T value)
public AbstractValue()
public abstract boolean loadFromString(java.lang.String s)
public abstract T getDefaultValue()
public void loadFromString(java.lang.String s, T def)
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public void addListener(AbstractValue.ValueChangeListener<T> listener)
public void removeListener(AbstractValue.ValueChangeListener<T> listener)