|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The Common-Controls framework makes use of Converter classes to convert Datatypes to and from String. A Converter is assigned to one specific Java Datatype (Class). Use ConverterRegisty.register() to register a custom converter.
| Method Summary | |
java.lang.Object |
getAsObject(RequestContext ctx,
java.lang.String newValue)
Converts the given String value into the Converters Datatype |
java.lang.String |
getAsString(RequestContext ctx,
java.lang.Object value)
Converts the Object of the converters Datatype into it's String representation |
| Method Detail |
public java.lang.Object getAsObject(RequestContext ctx,
java.lang.String newValue)
throws ConverterException
ctx - Request ContextnewValue - The String Value to convert
ConverterException - is thrown when a conversion error occurs
public java.lang.String getAsString(RequestContext ctx,
java.lang.Object value)
throws ConverterException
ctx - Request Contextvalue - The Object to convert
ConverterException - is thrown when a conversion error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||