net.sf.jzeno.echo.databinding
Interface Decorator


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

wrap

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.


unwrap

java.lang.Object unwrap(java.lang.String propertyName,
                        java.lang.Object value)

Unwraps a value.