Package io.jmix.flowui.view
Class ViewValidation
java.lang.Object
io.jmix.flowui.view.ViewValidation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Callbacks holder for save changes dialog.static class
Callbacks holder for unsaved changes dialog. -
Field Summary
Modifier and TypeFieldDescriptionprotected Dialogs
protected Messages
protected Notifications
protected jakarta.validation.Validator
protected UiViewProperties
-
Constructor Summary
ConstructorDescriptionViewValidation
(Messages messages, jakarta.validation.Validator validator, Dialogs dialogs, UiViewProperties viewProperties, Notifications notifications) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<ValidationErrors.Item>
collectValidationErrorItems
(ValidationException e, com.vaadin.flow.component.Component component) void
static String
showSaveConfirmationDialog
(View<?> origin) showUnsavedChangesDialog
(View<?> origin) void
showValidationErrors
(ValidationErrors errors) protected void
showValidationErrorsNotification
(ValidationErrors errors, int duration, com.vaadin.flow.component.notification.Notification.Position position, Notifications.Type type) protected Collection<ValidationErrors.Item>
validate
(SupportsValidation<?> component) validateBeanGroup
(Class<?> groupClass, Object item) validateUiComponent
(com.vaadin.flow.component.Component component) validateUiComponents
(com.vaadin.flow.component.Component container) validateUiComponents
(Collection<com.vaadin.flow.component.Component> components)
-
Field Details
-
messages
-
validator
protected jakarta.validation.Validator validator -
dialogs
-
notifications
-
viewProperties
-
-
Constructor Details
-
ViewValidation
@Autowired public ViewValidation(Messages messages, jakarta.validation.Validator validator, Dialogs dialogs, UiViewProperties viewProperties, Notifications notifications)
-
-
Method Details
-
validateUiComponents
-
validateUiComponents
public ValidationErrors validateUiComponents(Collection<com.vaadin.flow.component.Component> components) -
validateUiComponent
-
validateBeanGroup
-
showValidationErrors
-
showValidationErrorsNotification
protected void showValidationErrorsNotification(ValidationErrors errors, int duration, com.vaadin.flow.component.notification.Notification.Position position, Notifications.Type type) -
focusProblemComponent
-
getValidationErrorsMessage
-
validate
-
collectValidationErrorItems
protected Collection<ValidationErrors.Item> collectValidationErrorItems(ValidationException e, com.vaadin.flow.component.Component component) -
showUnsavedChangesDialog
-
showSaveConfirmationDialog
-