|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.components.model.wrapper.ValueWrapper<T>
public abstract class ValueWrapper<T>
Constructor Summary | |
---|---|
ValueWrapper()
|
Method Summary | |
---|---|
abstract ValueWrapper<T> |
deepCopy()
Creates a deep copy. |
void |
each(ValueCallback callback)
|
boolean |
equals(Object obj)
Delegates the call to the equals method of the wrapped object. |
Long |
getId()
|
abstract T |
getValue()
Returns the value that is passed to the form element when the value is edited. |
int |
hashCode()
Delegates the call to the hashCode method of the wrapped object. |
void |
setId(Long id)
|
abstract void |
setValue(T value)
|
String |
toString()
Delegates the call to the toString method of the wrapped object. |
T |
unwrap()
Returns the wrapped value. |
void |
wrap(Object value)
Wraps the given value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueWrapper()
Method Detail |
---|
public Long getId()
public void setId(Long id)
public void wrap(Object value)
setValue(Object)
.
public T unwrap()
getValue()
. Subclasses that wrap complex values (values
with nested wrappers) must overwrite this method to perform a
"deep-unwrapping".
public abstract T getValue()
ListWrapper
and MapWrapper
) which
return a self-reference.
public abstract void setValue(T value)
public abstract ValueWrapper<T> deepCopy()
setValue(Object)
with the value returned
by getValue()
. Complex wrappers have to make sure that the
deepCopy method is invoked for all nested values too.
public void each(ValueCallback callback)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |