|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.apache.wicket.validation.ValidatorAdapter<T>
T - type of validator's validatablepublic class ValidatorAdapter<T>
Adapts IValidator to Behavior
| Constructor Summary | |
|---|---|
ValidatorAdapter(IValidator<T> validator)
Constructor |
|
| Method Summary | |
|---|---|
IValidator<T> |
getValidator()
Gets adapted validator |
void |
validate(IValidatable<T> validatable)
Validates the IValidatable instance. |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, renderHead, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatorAdapter(IValidator<T> validator)
validator - validator to be adapted| Method Detail |
|---|
public void validate(IValidatable<T> validatable)
IValidatable instance. Validation errors should be reported using
the IValidatable.error(IValidationError) method.
validate in interface IValidator<T>validatable - the IValidatable instance being validatedpublic IValidator<T> getValidator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||