com.vaadin.flow.data.binder.

Class StatusChangeEvent

    • Constructor Detail

      • StatusChangeEvent

        public StatusChangeEvent(Binder<?> binder,
                                 boolean hasValidationErrors)

        Create a new status change event for given binder, storing information of whether the change that triggered this event caused validation errors.

        Parameters:

        binder - the event source binder

        hasValidationErrors - the validation status associated with this event

    • Method Detail

      • hasValidationErrors

        public boolean hasValidationErrors()

        Gets the associated validation status.

        Returns:

        true if the change that triggered this event caused validation errors, false otherwise

      • getBinder

        public Binder<?> getBinder()

        Gets the binder.

        Returns:

        the binder