Class FormValidationTriggerNone

  • All Implemented Interfaces:
    FormValidationTrigger

    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.

    Version:
    $Id: FormValidationTriggerNone.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • FormValidationTriggerNone

        public FormValidationTriggerNone()
    • Method Detail

      • initTrigger

        public void initTrigger​(FormController controller)
        Initializes this trigger and gives it the chance to register itself at the specified form controller. This implementation does not do any registration. It will never trigger an additional validation.
        Specified by:
        initTrigger in interface FormValidationTrigger
        Parameters:
        controller - the form controller