|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.behavior.Behavior org.apache.wicket.validation.validator.MinimumValidator<Z>
Z
- type of validatablepublic class MinimumValidator<Z extends Comparable<Z> & Serializable>
Validator for checking that the value is not smaller then a specified minimum value
Constructor Summary | |
---|---|
MinimumValidator(Z minimum)
Constructor |
Method Summary | |
---|---|
Z |
getMinimum()
Gets the minimum value. |
protected String |
resourceKey()
Gets the message resource key for this validator's error message from the ApplicationSettings class. |
void |
validate(IValidatable<Z> validatable)
Validates the IValidatable instance. |
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 |
Constructor Detail |
---|
public MinimumValidator(Z minimum)
minimum
- the minimum valueMethod Detail |
---|
public void validate(IValidatable<Z> validatable)
IValidator
IValidatable
instance. Validation errors should be reported using
the IValidatable.error(IValidationError)
method.
validate
in interface IValidator<Z extends Comparable<Z> & Serializable>
validatable
- the IValidatable
instance being validatedpublic Z getMinimum()
protected String resourceKey()
ApplicationSettings
class.
NOTE: THIS METHOD SHOULD NEVER RETURN null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |