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
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrors(ValidationErrors errors) Add errors found by a custom validation.View<?>Methods inherited from class com.vaadin.flow.component.ComponentEvent
isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
errors
-
-
Constructor Details
-
ValidationEvent
-
-
Method Details
-
getSource
- Overrides:
getSourcein classcom.vaadin.flow.component.ComponentEvent<View<?>>
-
addErrors
Add errors found by a custom validation. -
getErrors
-