Class StatusChangeEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.data.binder.StatusChangeEvent
All Implemented Interfaces:
Serializable

public class StatusChangeEvent extends EventObject
Binder status change event.

The Binder status is changed whenever any of the following happens:

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • 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 Details

    • hasValidationErrors

      public boolean hasValidationErrors()
      Gets the associated validation status.
      Returns:
      true if the change that triggered this event caused validation errors, false otherwise
    • getSource

      public Binder<?> getSource()
      Overrides:
      getSource in class EventObject
    • getBinder

      public Binder<?> getBinder()
      Gets the binder.
      Returns:
      the binder