|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Translator
Interface used by ValidatableFields to both format an object as text and translate
submitted text into an appropriate object for a given field.
| Method Summary | |
|---|---|
String |
format(IFormComponent field,
Locale locale,
Object object)
Invoked during rendering to format an object (which may be null) into a text value (which should not be null) appropriate for the specified field. |
Object |
parse(IFormComponent field,
ValidationMessages messages,
String value)
Invoked during rewind to parse a submitted input value into an object suitable for the specified component. |
| Methods inherited from interface org.apache.tapestry.form.FormComponentContributor |
|---|
renderContribution |
| Method Detail |
|---|
String format(IFormComponent field,
Locale locale,
Object object)
locale - TODO
Object parse(IFormComponent field,
ValidationMessages messages,
String value)
throws ValidatorException
messages - TODO
ValidatorException - if the specified text could not be parsed into an object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||