Class StandardEditor.ValidationEvent

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

public static class StandardEditor.ValidationEvent extends com.vaadin.flow.component.ComponentEvent<Screen<?>>
Event sent when screen is validated from StandardEditor.validateAdditionalRules() call.
Use this event listener to perform additional screen validation, for example:
     @Subscribe
     protected void onScreenValidation(ValidationEvent event) {
         ValidationErrors errors = performCustomValidation();
         event.addErrors(errors);
     }
 
See Also:
  • Field Details

  • Constructor Details

    • ValidationEvent

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

    • getSource

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

      public void addErrors(ValidationErrors errors)
    • getErrors

      public ValidationErrors getErrors()