|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.markup.html.form.validation.AbstractValidator
wicket.markup.html.form.validation.DateValidator
public abstract class DateValidator
A validator for dates that can be used for subclassing or use one of the static factory methods to get the default date validators as range, maximum or minimum.
| Constructor Summary | |
|---|---|
DateValidator()
|
|
| Method Summary | |
|---|---|
static DateValidator |
maximum(java.util.Date maximum)
Gets a Date maximum validator to check if a date is smaller then the given maximum value. |
static DateValidator |
minimum(java.util.Date minimum)
Gets a Date minimum validator to check if a date is greater then the given minimum value. |
abstract void |
onValidate(FormComponent formComponent,
java.util.Date value)
Subclasses should override this method to validate the string value for a component. |
static DateValidator |
range(java.util.Date minimum,
java.util.Date maximum)
Gets a Date range validator to check if the date is between the minimum and maximum dates. |
void |
validate(FormComponent formComponent)
Instead of subclassing IValidator, you should use one of the existing validators, which cover a huge number of cases, or if none satisfies your need, subclass one of the Type validators like StringValidator,
NumberValidator or DateValidator |
| Methods inherited from class wicket.markup.html.form.validation.AbstractValidator |
|---|
error, error, error, error, messageModel, resourceKey |
| 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)
minimum - The minimum date.maximum - The maximum date.
public static DateValidator minimum(java.util.Date minimum)
minimum - The minimum length of the string.
public static DateValidator maximum(java.util.Date maximum)
maximum - The maximum date.
public void validate(FormComponent formComponent)
IValidator
Instead of subclassing IValidator, you should use one of the existing
validators, which cover a huge number of cases, or if none satisfies your
need, subclass one of the Type validators like StringValidator,
NumberValidator or DateValidator
Validates the given input. The input corresponds to the input from the request for a component.
formComponent - Component to validateIValidator.validate(wicket.markup.html.form.FormComponent)
public abstract void onValidate(FormComponent formComponent,
java.util.Date value)
formComponent - form componentvalue - The string value to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||