org.hackystat.projectbrowser.page.trajectory.validator
Class TelemetrySelectionValidator

java.lang.Object
  extended by org.apache.wicket.markup.html.form.validation.AbstractFormValidator
      extended by org.hackystat.projectbrowser.page.trajectory.validator.TelemetrySelectionValidator
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.form.validation.IFormValidator

public class TelemetrySelectionValidator
extends org.apache.wicket.markup.html.form.validation.AbstractFormValidator

Provides a telemetry validator. Since we support the only metrics so far, it's the easiest way to report errors.

Author:
Pavel Senin.
See Also:
Serialized Form

Constructor Summary
TelemetrySelectionValidator(org.apache.wicket.markup.html.form.FormComponent telemetrySelection)
          Takes a Project menu and a single Date field.
 
Method Summary
 org.apache.wicket.markup.html.form.FormComponent[] getDependentFormComponents()
          Returns the form components.
 void validate(org.apache.wicket.markup.html.form.Form trajectorySelectionForm)
          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

TelemetrySelectionValidator

public TelemetrySelectionValidator(org.apache.wicket.markup.html.form.FormComponent telemetrySelection)
Takes a Project menu and a single Date field.

Parameters:
telemetrySelection - foo.
Method Detail

getDependentFormComponents

public org.apache.wicket.markup.html.form.FormComponent[] getDependentFormComponents()
Returns the form components.

Returns:
The form components.

validate

public void validate(org.apache.wicket.markup.html.form.Form trajectorySelectionForm)
Performs the validation. Note that this validation must handle a projectMenu plus a single date, or a projectMenu plus two dates (start and end date).

Parameters:
trajectorySelectionForm - foo.