Class ReceivedInAppNotificationsDialog
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.notificationsflowui.view.receivedinappnotifications.ReceivedInAppNotificationsDialog
- 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
,FragmentOwner
,Serializable
@ViewController("ntf_ReceivedInAppNotificationsDialog")
@ViewDescriptor("received-in-app-notifications-dialog.xml")
@DialogMode(height="38em",
width="58em",
resizable=true)
public class ReceivedInAppNotificationsDialog
extends StandardView
- See Also:
-
Nested Class Summary
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 CurrentUserSubstitution
protected static final String
protected InAppNotificationsService
protected Integer
protected BaseAction
protected BaseAction
protected MessageBundle
protected NotificationDialogs
protected NotificationTypesRepository
protected BaseAction
protected DataGrid<InAppNotification>
protected CollectionLoader<InAppNotification>
protected UserSessionNotifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Component
iconColumnRenderer
(InAppNotification notification) protected void
protected void
protected void
onBeforeShow
(View.BeforeShowEvent event) protected void
onDataGridItemDoubleClick
(com.vaadin.flow.component.grid.ItemDoubleClickEvent<InAppNotification> event) protected void
protected void
onDataGridSelection
(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<InAppNotification>, InAppNotification> event) protected void
onInit
(View.InitEvent event) protected void
protected void
protected void
onReadNotificationDialogOpenChange
(com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent event) protected void
onShowModeSelectorComponentValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.radiobutton.RadioButtonGroup<ReceivedInAppNotificationsDialog.ShowMode>, ReceivedInAppNotificationsDialog.ShowMode> event) protected void
protected void
protected com.vaadin.flow.component.Component
readStatusColumnComponentRenderer
(InAppNotification notification) protected void
resolveSelectedFlags
(Collection<InAppNotification> selected) protected void
protected void
protected void
updateActionButtons
(Collection<InAppNotification> selected) protected void
updateMarkReadUnreadBtn
(Collection<InAppNotification> selected) protected void
updateOpenBtn
(Collection<InAppNotification> selected) withInitialUnreadAmount
(Integer initialUnreadAmount) 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, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigation
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
-
DATAGRID_ICON_XS_CLASS_NAME
- See Also:
-
messageBundle
-
currentUserSubstitution
-
inAppNotificationsService
-
notificationTypesRepository
-
userSessionNotifier
-
notificationDialogs
-
userInAppNotificationsDl
-
showModeSelector
@ViewComponent protected JmixRadioButtonGroup<ReceivedInAppNotificationsDialog.ShowMode> showModeSelector -
userInAppNotificationsDataGrid
-
openAction
-
markAsReadUnreadAction
@ViewComponent("userInAppNotificationsDataGrid.markAsReadUnreadAction") protected BaseAction markAsReadUnreadAction -
markAllAsReadAction
@ViewComponent("userInAppNotificationsDataGrid.markAllAsReadAction") protected BaseAction markAllAsReadAction -
initialUnreadAmount
-
-
Constructor Details
-
ReceivedInAppNotificationsDialog
public ReceivedInAppNotificationsDialog()
-
-
Method Details
-
onInit
-
onBeforeShow
-
onUserInAppNotificationsDlPostLoad
@Subscribe(id="userInAppNotificationsDl", target=DATA_LOADER) protected void onUserInAppNotificationsDlPostLoad(CollectionLoader.PostLoadEvent<InAppNotification> event) -
onMarkAsReadUnreadActionPerformed
@Subscribe("userInAppNotificationsDataGrid.markAsReadUnreadAction") protected void onMarkAsReadUnreadActionPerformed(ActionPerformedEvent event) -
onMarkAllAsReadActionPerformed
@Subscribe("userInAppNotificationsDataGrid.markAllAsReadAction") protected void onMarkAllAsReadActionPerformed(ActionPerformedEvent event) -
withInitialUnreadAmount
-
initShowModeSelector
protected void initShowModeSelector() -
onShowModeSelectorComponentValueChange
protected void onShowModeSelectorComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.radiobutton.RadioButtonGroup<ReceivedInAppNotificationsDialog.ShowMode>, ReceivedInAppNotificationsDialog.ShowMode> event) -
initInAppNotificationsDataGrid
protected void initInAppNotificationsDataGrid() -
iconColumnRenderer
-
readStatusColumnComponentRenderer
protected com.vaadin.flow.component.Component readStatusColumnComponentRenderer(InAppNotification notification) -
openReadNotificationDialog
-
onDataGridItemOpen
@Subscribe("userInAppNotificationsDataGrid.openAction") protected void onDataGridItemOpen(ActionPerformedEvent event) -
onDataGridItemDoubleClick
protected void onDataGridItemDoubleClick(com.vaadin.flow.component.grid.ItemDoubleClickEvent<InAppNotification> event) -
onReadNotificationDialogOpenChange
protected void onReadNotificationDialogOpenChange(com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent event) -
onDataGridSelection
@Subscribe("userInAppNotificationsDataGrid") protected void onDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<InAppNotification>, InAppNotification> event) -
setupInitialShowMode
protected void setupInitialShowMode() -
setupMarkAllAsReadBtnAvailability
protected void setupMarkAllAsReadBtnAvailability() -
updateMarkReadUnreadBtn
-
updateOpenBtn
-
updateActionButtons
-
resolveSelectedFlags
protected org.apache.commons.lang3.tuple.Pair<Boolean,Boolean> resolveSelectedFlags(Collection<InAppNotification> selected) -
reloadData
protected void reloadData()
-