Package io.jmix.flowui.screen
Class ScreenValidation
java.lang.Object
io.jmix.flowui.screen.ScreenValidation
-
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 FlowUiScreenProperties
protected javax.validation.Validator
-
Constructor Summary
ConstructorDescriptionScreenValidation
(Messages messages, javax.validation.Validator validator, Dialogs dialogs, FlowUiScreenProperties screenProperties, Notifications notifications) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<ValidationErrors.Item>
collectValidationErrorItems
(ValidationException e, com.vaadin.flow.component.Component component) void
static String
showSaveConfirmationDialog
(Screen origin) showUnsavedChangesDialog
(Screen 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) validateUiComponents
(com.vaadin.flow.component.HasComponents component) validateUiComponents
(Collection<com.vaadin.flow.component.Component> components)
-
Field Details
-
messages
-
validator
protected javax.validation.Validator validator -
dialogs
-
notifications
-
screenProperties
-
-
Constructor Details
-
ScreenValidation
@Autowired public ScreenValidation(Messages messages, javax.validation.Validator validator, Dialogs dialogs, FlowUiScreenProperties screenProperties, Notifications notifications)
-
-
Method Details
-
validateUiComponents
-
validateUiComponents
public ValidationErrors validateUiComponents(Collection<com.vaadin.flow.component.Component> components) -
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
-