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 ClassesNested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserSubstitutionprotected static final Stringprotected InAppNotificationsServiceprotected Integerprotected BaseActionprotected BaseActionprotected MessageBundleprotected NotificationDialogsprotected NotificationTypesRepositoryprotected BaseActionprotected DataGrid<InAppNotification>protected CollectionLoader<InAppNotification>protected UserSessionNotifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.ComponenticonColumnRenderer(InAppNotification notification) protected voidprotected voidprotected voidonBeforeShow(View.BeforeShowEvent event) protected voidonDataGridItemDoubleClick(com.vaadin.flow.component.grid.ItemDoubleClickEvent<InAppNotification> event) protected voidprotected voidonDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<InAppNotification>, InAppNotification> event) protected voidonInit(View.InitEvent event) protected voidprotected voidprotected voidonReadNotificationDialogOpenChange(com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent event) protected voidonShowModeSelectorComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.radiobutton.RadioButtonGroup<ReceivedInAppNotificationsDialog.ShowMode>, ReceivedInAppNotificationsDialog.ShowMode> event) protected voidprotected voidprotected com.vaadin.flow.component.ComponentreadStatusColumnComponentRenderer(InAppNotification notification) protected voidresolveSelectedFlags(Collection<InAppNotification> selected) protected voidprotected voidprotected voidupdateActionButtons(Collection<InAppNotification> selected) protected voidupdateMarkReadUnreadBtn(Collection<InAppNotification> selected) protected voidupdateOpenBtn(Collection<InAppNotification> selected) withInitialUnreadAmount(Integer initialUnreadAmount) Methods inherited from class io.jmix.flowui.view.StandardView
initContentMethods 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, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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()
-