Class FormControllerFieldStatusEvent

  • All Implemented Interfaces:
    Serializable

    public class FormControllerFieldStatusEvent
    extends FormControllerEvent

    A specialized FormControllerEvent class that is generated whenever a form field changes its visited status.

    Event objects of this type are sent to FormControllerFieldStatusListener objects registered at a FormController when a field in the controller's form is visited for the first time.

    Version:
    $Id: FormControllerFieldStatusEvent.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    See Also:
    Serialized Form
    • Constructor Detail

      • FormControllerFieldStatusEvent

        public FormControllerFieldStatusEvent​(FormController controller,
                                              String field)
        Creates a new instance of FormControllerFieldStatusEvent and initializes it with the FormController that is the source of this event and the name of the field affected by this event.
        Parameters:
        controller - the FormController (must not be null)
        field - the name of the field whose status has changed (must not be null)
        Throws:
        IllegalArgumentException - if a required parameter is missing
    • Method Detail

      • getFieldName

        public String getFieldName()
        Returns the name of the field whose status has changed.
        Returns:
        the name of the field affected by this event