Class StandardDetailView.ValidationEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<View<?>>
io.jmix.flowui.view.StandardDetailView.ValidationEvent
All Implemented Interfaces:
Serializable
Enclosing class:
StandardDetailView<T>

public static class StandardDetailView.ValidationEvent extends com.vaadin.flow.component.ComponentEvent<View<?>>
Event sent when the view is validated on saving the view data context.
Use this event listener to perform additional validation of the view, for example:
     @Subscribe
     protected void onViewValidation(ValidationEvent event) {
         ValidationErrors errors = performCustomValidation();
         event.addErrors(errors);
     }
 
See Also:
  • Field Details

  • Constructor Details

    • ValidationEvent

      public ValidationEvent(View<?> source)
  • Method Details

    • getSource

      public View<?> getSource()
      Overrides:
      getSource in class com.vaadin.flow.component.ComponentEvent<View<?>>
    • addErrors

      public void addErrors(ValidationErrors errors)
      Add errors found by a custom validation.
    • getErrors

      public ValidationErrors getErrors()