Package io.jmix.notificationsflowui.view
Class NotificationDetailViewSupport
java.lang.Object
io.jmix.notificationsflowui.view.NotificationDetailViewSupport
@Component("ntf_NotificationDetailViewSupport")
public class NotificationDetailViewSupport
extends Object
Utility class to simplify initialization of detail views for
InAppNotification
entity.-
Field Summary
Modifier and TypeFieldDescriptionprotected final Messages
protected final NotificationTypesRepository
protected final UiComponents
-
Constructor Summary
ConstructorDescriptionNotificationDetailViewSupport
(Messages messages, NotificationTypesRepository notificationTypesRepository, UiComponents uiComponents) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getLocalizedNotificationType
(NotificationType notificationType) void
initTypeField
(JmixSelect<NotificationType> typeField) protected com.vaadin.flow.component.Component
protected void
onTypeFieldComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<NotificationType>, NotificationType> event)
-
Field Details
-
messages
-
notificationTypesRepository
-
uiComponents
-
-
Constructor Details
-
NotificationDetailViewSupport
public NotificationDetailViewSupport(Messages messages, NotificationTypesRepository notificationTypesRepository, UiComponents uiComponents)
-
-
Method Details
-
initTypeField
-
onTypeFieldComponentRenderer
-
onTypeFieldComponentValueChange
protected void onTypeFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<NotificationType>, NotificationType> event) -
getLocalizedNotificationType
-