|
|||||||||||
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. |
java.lang.Object |
toObject(IFormComponent field,
java.lang.String input)
Converts input, submitted by the client, into an object value. |
java.lang.String |
toString(IFormComponent field,
java.lang.Object value)
Invoked during rendering to convert an object value (which may be null) to a String. |
Method Detail |
public boolean isRequired()
public java.lang.String toString(IFormComponent field, java.lang.Object value)
public java.lang.Object toObject(IFormComponent field, java.lang.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 |