|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValueEncoder<V>
Used to convert server side values to client-side strings. This is used when generating a EventContext as part of a URL, or when components (such as Select) generated other client-side strings.
toClient(Object) method extracts
a primary key, and the toValue(String) re-acquires the corresponding entity object.
SelectModel,
ValueEncoderSource,
PrimaryKeyEncoder| Method Summary | |
|---|---|
String |
toClient(V value)
Converts a value into a client-side representation. |
V |
toValue(String clientValue)
Converts a client-side representation, provided by toClient(Object), back into a server-side value. |
| Method Detail |
|---|
String toClient(V value)
toValue(String). In
some cases, what is returned is an identifier used to locate the true object, rather than a string representation
of the value itself.
value - to be encoded
V toValue(String clientValue)
toClient(Object), back into a server-side value.
clientValue - string representation of the value's identity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||