|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.html.form.validation.AbstractFormValidator
org.hackystat.projectbrowser.page.validator.ProjectDateValidator
public class ProjectDateValidator
Provides a project date validator. This validator will work with forms that have a multiple selection menu for Projects, plus either one or two date fields. It provides two constructors: one for forms with a Project menu and one date, and one for forms with a Project menu and two dates.
Constructor Summary | |
---|---|
ProjectDateValidator(org.apache.wicket.markup.html.form.FormComponent projectMenu,
org.apache.wicket.markup.html.form.FormComponent dateField)
Takes a Project menu and a single Date field. |
|
ProjectDateValidator(org.apache.wicket.markup.html.form.FormComponent projectMenu,
org.apache.wicket.markup.html.form.FormComponent startDateField,
org.apache.wicket.markup.html.form.FormComponent endDateField)
Takes a Project menu (ListMultipleChoice) and two Date fields (DateTextField). |
Method Summary | |
---|---|
org.apache.wicket.markup.html.form.FormComponent[] |
getDependentFormComponents()
Returns the form components. |
void |
validate(org.apache.wicket.markup.html.form.Form projectDateForm)
Performs the validation. |
Methods inherited from class org.apache.wicket.markup.html.form.validation.AbstractFormValidator |
---|
error, error, error, error, messageModel, resourceKey, variablesMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectDateValidator(org.apache.wicket.markup.html.form.FormComponent projectMenu, org.apache.wicket.markup.html.form.FormComponent dateField)
projectMenu
- The project menu component.dateField
- The Date field component.public ProjectDateValidator(org.apache.wicket.markup.html.form.FormComponent projectMenu, org.apache.wicket.markup.html.form.FormComponent startDateField, org.apache.wicket.markup.html.form.FormComponent endDateField)
projectMenu
- The project menu component.startDateField
- The Date field component.endDateField
- The Date field component.Method Detail |
---|
public org.apache.wicket.markup.html.form.FormComponent[] getDependentFormComponents()
public void validate(org.apache.wicket.markup.html.form.Form projectDateForm)
projectDateForm
- The form to validate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |