|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object that works with an IFormComponent
to format output
(convert object values to strings values) and to process input
(convert strings to object values and validate them).
Method Summary | |
boolean |
isRequired()
All validators must implement a required property. |
void |
renderValidatorContribution(IFormComponent field,
IMarkupWriter writer,
IRequestCycle cycle)
Invoked by the field after it finishes rendering its tag (but before the tag is closed) to allow the validator to provide a contribution to the rendering process. |
Object |
toObject(IFormComponent field,
String input)
Converts input, submitted by the client, into an object value. |
String |
toString(IFormComponent field,
Object value)
Invoked during renderring to convert an object value (which may be null) to a String. |
Method Detail |
public boolean isRequired()
public String toString(IFormComponent field, Object value)
public Object toObject(IFormComponent field, String input) throws ValidatorException
The input string will already have been trimmed. It may be null.
ValidatorException
- if the string cannot be converted into
an object, or the object is
not valid (due to other constraints).public void renderValidatorContribution(IFormComponent field, IMarkupWriter writer, IRequestCycle cycle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |