Package io.jmix.flowui.view
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:
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 Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrors
(ValidationErrors errors) Add errors found by a custom validation.View<?>
Methods inherited from class com.vaadin.flow.component.ComponentEvent
isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
errors
-
-
Constructor Details
-
ValidationEvent
-
-
Method Details
-
getSource
- Overrides:
getSource
in classcom.vaadin.flow.component.ComponentEvent<View<?>>
-
addErrors
Add errors found by a custom validation. -
getErrors
-