org.apache.wicket.markup.html.form.validation
Class FormValidatorAdapter

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.markup.html.form.validation.FormValidatorAdapter
All Implemented Interfaces:
java.io.Serializable, IClusterable, IComponentAwareEventSink, IFormValidator, IComponentAwareHeaderContributor

public class FormValidatorAdapter
extends Behavior
implements IFormValidator

Adapts IFormValidator to Behavior

Author:
igor
See Also:
Serialized Form

Constructor Summary
FormValidatorAdapter(IFormValidator validator)
          Constructor
 
Method Summary
 FormComponent<?>[] getDependentFormComponents()
          
 IFormValidator getValidator()
           
 void validate(Form<?> form)
          This method is ran if all components returned by IFormValidator.getDependentFormComponents() are valid.
 
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

FormValidatorAdapter

public FormValidatorAdapter(IFormValidator validator)
Constructor

Parameters:
validator -
Method Detail

getDependentFormComponents

public FormComponent<?>[] getDependentFormComponents()

Specified by:
getDependentFormComponents in interface IFormValidator
Returns:
array of FormComponents 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-2011 Apache Software Foundation. All Rights Reserved.