java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.validation.ValidatorAdapter<T>
- Type Parameters:
T
- type of validator's validatable
- All Implemented Interfaces:
Serializable
,IComponentAwareEventSink
,IComponentAwareHeaderContributor
,IClusterable
,IValidator<T>
Adapts
IValidator
to Behavior- Author:
- igor
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets adapted validatorvoid
validate
(IValidatable<T> validatable) Validates theIValidatable
instance.Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, renderHead, unbind
-
Constructor Details
-
ValidatorAdapter
Constructor- Parameters:
validator
- validator to be adapted
-
-
Method Details
-
validate
Validates theIValidatable
instance. Validation errors should be reported using theIValidatable.error(IValidationError)
method.- Specified by:
validate
in interfaceIValidator<T>
- Parameters:
validatable
- theIValidatable
instance being validated
-
getValidator
Gets adapted validator- Returns:
- validator
-