public class FormValidationTriggerNone extends Object implements FormValidationTrigger
A specialized implementation of a FormValidationTrigger
that
does no triggering at all.
This is a very simplistic implementation of the
FormValidationTrigger
interface. It literally does nothing,
i.e. no user event will cause an additional validation. This means that the
form is validated once when the window opens, and then every time the user
hits the OK button. (At these points in a form's life-cycle a validation is
always performed.)
If this validation trigger implementation is used, the user gets feedback about the validity of the data entered only when the form is to be committed. If then some fields contain invalid data, a message box is displayed, and the form cannot be closed. This is not very spectacular. On the other hand, the user is not overwhelmed by validation error messages while still editing the form. So especially for classic data gathering applications this trigger strategy is appropriate.
Applications that want to show a more interactive behavior can choose a different trigger strategy, e.g. one that triggers a validation every time the user leaves an input field.
Constructor and Description |
---|
FormValidationTriggerNone() |
Modifier and Type | Method and Description |
---|---|
void |
initTrigger(FormController controller)
Initializes this trigger and gives it the chance to register itself at
the specified form controller.
|
public void initTrigger(FormController controller)
initTrigger
in interface FormValidationTrigger
controller
- the form controllerCopyright © 2016 The JGUIraffe Team. All rights reserved.