|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.validation.validator.AbstractValidator<java.util.Date>
org.apache.wicket.validation.validator.DateValidator
public abstract class DateValidator
Validator for checking dates. This validator can be extended or can be used for one of its static
factory methods to get the default DateValidator as a range, maximum, or minimum
type.
| Constructor Summary | |
|---|---|
DateValidator()
|
|
| Method Summary | |
|---|---|
static DateValidator |
maximum(java.util.Date maximum)
Gets a Date maximum validator for checking if a Date value is
smaller than the given maximum value. |
static DateValidator |
minimum(java.util.Date minimum)
Gets a Date minimum validator for checking if a Date value is
greater than the given minimum Date value. |
static DateValidator |
range(java.util.Date minimum,
java.util.Date maximum)
Gets a Date range validator for checking if the Date value falls
between the minimum and maximum Date values. |
| Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator |
|---|
error, error, error, error, messageModel, onValidate, 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 |
|---|
public DateValidator()
| Method Detail |
|---|
public static DateValidator range(java.util.Date minimum,
java.util.Date maximum)
Date range validator for checking if the Date value falls
between the minimum and maximum Date values. If that is not the case, an error
message will be generated with the key "DateValidator.range". The message keys that can be
used are:
Component that failedComponent - either comes from
FormComponent.labelModel or resource key [form-id].[form-component-id] in that
order
minimum - the minimum Datemaximum - the maximum Date
DateValidatorpublic static DateValidator minimum(java.util.Date minimum)
Date minimum validator for checking if a Date value is
greater than the given minimum Date value. If that is not the case, an error
message will be generated with the key "DateValidator.minimum". The message keys that can be
used are:
Component that failedComponent - either comes from
FormComponent.labelModel or resource key [form-id].[form-component-id] in that
order
minimum - the minimum Date
DateValidatorpublic static DateValidator maximum(java.util.Date maximum)
Date maximum validator for checking if a Date value is
smaller than the given maximum value. If that is not the case, an error message will be
generated with the key "DateValidator.maximum". The message keys that can be used are:
Component that failedComponent - either comes from
FormComponent.labelModel or resource key [form-id].[form-component-id] in that
order
maximum - the maximum Date
DateValidator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||