|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Decorator
A simple wrap/unwrap interface that can be used to decorate properties when using databinding.
2 Operations allow conversion from and to the backing model bean's property.
The property name used for data binding is also passed in to allow a Screen to simple implement this interface, in order to keep decoration encapsulated in the Screen class.
Method Summary | |
---|---|
java.lang.Object |
unwrap(java.lang.String propertyName,
java.lang.Object value)
Unwraps a value. |
java.lang.Object |
wrap(java.lang.String propertyName,
java.lang.Object value)
Converts the supplied source object and returns an object, which is converted to a string through it's toString() method. |
Method Detail |
---|
java.lang.Object wrap(java.lang.String propertyName, java.lang.Object value)
Converts the supplied source object and returns an object, which is converted to a string through it's toString() method.
java.lang.Object unwrap(java.lang.String propertyName, java.lang.Object value)
Unwraps a value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |