com.alogient.cameleon.extension.wicket.ui.form.element.validator
Class CameleonListValidator.MaximumSelectedValidator

java.lang.Object
  extended by org.apache.wicket.validation.validator.AbstractValidator<Collection<com.alogient.cameleon.sdk.form.vo.formelement.NameValueElementVo>>
      extended by com.alogient.cameleon.extension.wicket.ui.form.element.validator.CameleonListValidator
          extended by com.alogient.cameleon.extension.wicket.ui.form.element.validator.CameleonListValidator.MaximumSelectedValidator
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, org.apache.wicket.validation.INullAcceptingValidator<Collection<com.alogient.cameleon.sdk.form.vo.formelement.NameValueElementVo>>, org.apache.wicket.validation.IValidator<Collection<com.alogient.cameleon.sdk.form.vo.formelement.NameValueElementVo>>
Enclosing class:
CameleonListValidator

public static class CameleonListValidator.MaximumSelectedValidator
extends CameleonListValidator

Validator for checking if the number of allowed selected items is less than the allowed value.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.alogient.cameleon.extension.wicket.ui.form.element.validator.CameleonListValidator
CameleonListValidator.MaximumSelectedValidator, CameleonListValidator.MinimumSelectedValidator
 
Constructor Summary
CameleonListValidator.MaximumSelectedValidator(Integer maximumSelected)
           
 
Method Summary
protected  void onValidate(org.apache.wicket.validation.IValidatable<Collection<com.alogient.cameleon.sdk.form.vo.formelement.NameValueElementVo>> iValidatable)
           
 
Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator
error, error, error, error, messageModel, resourceKey, resourceKey, validate, validate, validateOnNullValue, variablesMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameleonListValidator.MaximumSelectedValidator

public CameleonListValidator.MaximumSelectedValidator(Integer maximumSelected)
Parameters:
maximumSelected - maximum of items which should be selected by the client
Method Detail

onValidate

protected void onValidate(org.apache.wicket.validation.IValidatable<Collection<com.alogient.cameleon.sdk.form.vo.formelement.NameValueElementVo>> iValidatable)
Specified by:
onValidate in class org.apache.wicket.validation.validator.AbstractValidator<Collection<com.alogient.cameleon.sdk.form.vo.formelement.NameValueElementVo>>


Copyright © 2011 Alogient. All Rights Reserved.