|
||||||||||
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.MaximumValidator<Z>
Z
- type of validatablepublic class MaximumValidator<Z extends Comparable<Z> & Serializable>
Validator for checking that the value is not greater then a specified maximum value
Constructor Summary | |
---|---|
MaximumValidator(Z maximum)
Constructor |
Method Summary | |
---|---|
Z |
getMaximum()
Gets the maximum 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 MaximumValidator(Z maximum)
maximum
- the maximum valueMethod Detail |
---|
public void validate(IValidatable<Z> validatable)
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 getMaximum()
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 |