org.apache.wicket.markup.html.form.validation
Class FormValidatorAdapter
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.markup.html.form.validation.FormValidatorAdapter
- All Implemented Interfaces:
- Serializable, IClusterable, IComponentAwareEventSink, IFormValidator, IComponentAwareHeaderContributor
public class FormValidatorAdapter
- extends Behavior
- implements IFormValidator
Adapts IFormValidator
to Behavior
- Author:
- igor
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.behavior.Behavior |
afterRender, beforeRender, bind, canCallListenerInterface, 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 |
FormValidatorAdapter
public FormValidatorAdapter(IFormValidator validator)
- Constructor
- Parameters:
validator
-
getDependentFormComponents
public FormComponent<?>[] getDependentFormComponents()
-
- Specified by:
getDependentFormComponents
in interface IFormValidator
- Returns:
- array of
FormComponent
s that this validator depends on
validate
public void validate(Form<?> form)
- This method is ran if all components returned by
IFormValidator.getDependentFormComponents()
are valid.
- Specified by:
validate
in interface IFormValidator
- Parameters:
form
- form this validator is added to
getValidator
public IFormValidator getValidator()
- Returns:
- form validator
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.