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
FieldsModifier and TypeFieldDescriptionprotected final Messagesprotected final NotificationTypesRepositoryprotected final UiComponents -
Constructor Summary
ConstructorsConstructorDescriptionNotificationDetailViewSupport(Messages messages, NotificationTypesRepository notificationTypesRepository, UiComponents uiComponents) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLocalizedNotificationType(NotificationType notificationType) voidinitTypeField(JmixSelect<NotificationType> typeField) protected com.vaadin.flow.component.Componentprotected voidonTypeFieldComponentValueChange(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
-