Package io.jmix.flowui.screen
Class ScreenValidation
java.lang.Object
io.jmix.flowui.screen.ScreenValidation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCallbacks holder for save changes dialog.static classCallbacks holder for unsaved changes dialog. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dialogsprotected Messagesprotected Notificationsprotected FlowUiScreenPropertiesprotected javax.validation.Validator -
Constructor Summary
ConstructorsConstructorDescriptionScreenValidation(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) voidstatic StringshowSaveConfirmationDialog(Screen origin) showUnsavedChangesDialog(Screen origin) voidshowValidationErrors(ValidationErrors errors) protected voidshowValidationErrorsNotification(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
-