Class InAppNotificationDetailView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardDetailView<InAppNotification>
io.jmix.notificationsflowui.view.inappnotification.InAppNotificationDetailView
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.router.AfterNavigationObserver
,com.vaadin.flow.router.BeforeEnterObserver
,com.vaadin.flow.router.BeforeLeaveObserver
,com.vaadin.flow.router.HasDynamicTitle
,com.vaadin.flow.router.internal.AfterNavigationHandler
,com.vaadin.flow.router.internal.BeforeEnterHandler
,com.vaadin.flow.router.internal.BeforeLeaveHandler
,ChangeTracker
,DetailView<InAppNotification>
,ReadOnlyAwareView
,Serializable
@Route(value="ntf/notifications/:id",
layout=DefaultMainViewParent.class)
@ViewController("ntf_InAppNotification.detail")
@ViewDescriptor("in-app-notification-detail-view.xml")
@DialogMode(width="30em",
resizable=true)
public class InAppNotificationDetailView
extends StandardDetailView<InAppNotification>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected EntityStates
protected MessageTools
protected Metadata
protected NotificationTypesRepository
protected NotificationDetailViewSupport
protected JmixTextArea
protected JmixComboBox<String>
protected JmixSelect<NotificationType>
protected UserRepository
protected UserSessionNotifier
Fields inherited from class io.jmix.flowui.view.StandardDetailView
DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
initBodyFields
(JmixTextArea plainTextBodyField) protected void
initRecipientsField
(JmixComboBox<String> recipientsField) protected void
initTypeField
(JmixSelect<NotificationType> typeField) protected void
protected void
onBeforeShow
(View.BeforeShowEvent event) protected void
onBodyFieldComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextArea, String> event) protected void
onInit
(View.InitEvent event) protected void
onRecipientsFieldFetchCallback
(com.vaadin.flow.data.provider.Query<String, String> query) protected void
onTypeFieldComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<NotificationType>, NotificationType> event) protected void
Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, closeWithDiscard, closeWithSave, entityCanBeLoaded, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getPessimisticLockStatus, getRouteParamName, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
notificationViewSupport
-
userRepository
-
notificationTypesRepository
-
messageTools
-
metadata
-
userSessionNotifier
-
plainTextBodyField
-
typeField
-
recipientsField
-
entityStates
-
-
Constructor Details
-
InAppNotificationDetailView
public InAppNotificationDetailView()
-
-
Method Details
-
onInit
-
onInitEntity
-
onBeforeShow
-
onAfterSave
-
initRecipientsField
-
initTypeField
-
onTypeFieldComponentValueChange
protected void onTypeFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.select.Select<NotificationType>, NotificationType> event) -
initBodyFields
-
onBodyFieldComponentValueChange
protected void onBodyFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.textfield.TextArea, String> event) -
setupValuesToFields
protected void setupValuesToFields() -
onRecipientsFieldFetchCallback
-