Class UserInAppNotificationBrowseScreen
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.notificationsui.screen.inappnotification.UserInAppNotificationBrowseScreen
- All Implemented Interfaces:
FrameOwner
@UiController("ntf_UserInAppNotification.browse")
@UiDescriptor("user-in-app-notification-browse.xml")
public class UserInAppNotificationBrowseScreen
extends Screen
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentAuthenticationprotected DataManagerprotected Iconsprotected Integerprotected Buttonprotected Buttonprotected Messagesprotected NotificationTypesRepositoryprotected RadioButtonGroup<ShowMode>protected UiComponentsprotected CollectionLoader<InAppNotification>protected Table<InAppNotification>protected UserSessionNotifierprotected ViewAction<InAppNotification>Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidvoidvoidvoidonInit(Screen.InitEvent event) voidvoidvoidprotected voidprotected StringresolveIconSource(InAppNotification inAppNotification) resolveSelectedFlags(Set<InAppNotification> selected) setInitialUnreadAmount(Integer initialUnreadAmount) protected voidprotected voidprotected voidprotected voidupdateReadStatus(Set<InAppNotification> notifications, NotificationReadStatus newStatus) Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
dataManager
-
uiComponents
-
icons
-
messages
-
notificationTypesRepository
-
currentAuthentication
-
userInAppNotificationsTable
-
userSessionNotifier
-
viewAction
-
showModeSelector
-
markSelectedBtn
-
markAllAsReadBtn
-
userInAppNotificationsDl
-
initialUnreadAmount
-
-
Constructor Details
-
UserInAppNotificationBrowseScreen
public UserInAppNotificationBrowseScreen()
-
-
Method Details
-
setInitialUnreadAmount
-
onInit
-
onBeforeShow
-
onAfterClose
-
onUserInAppNotificationsTableSelection
@Subscribe("userInAppNotificationsTable") public void onUserInAppNotificationsTableSelection(Table.SelectionEvent<InAppNotification> event) -
onMarkSelectedBtnClick
-
onMarkAllAsReadBtnClick
-
setupMarkSelectedButtonAppearance
-
resolveSelectedFlags
protected org.apache.commons.lang3.tuple.Pair<Boolean,Boolean> resolveSelectedFlags(Set<InAppNotification> selected) -
setupMarkButtonsPostLoadAppearance
protected void setupMarkButtonsPostLoadAppearance() -
setupMarkAllAsReadButtonAppearance
protected void setupMarkAllAsReadButtonAppearance() -
updateReadStatus
protected void updateReadStatus(Set<InAppNotification> notifications, NotificationReadStatus newStatus) -
initShowModeSelector
protected void initShowModeSelector() -
initNotificationsTable
protected void initNotificationsTable() -
defineInitialShowMode
protected void defineInitialShowMode() -
resolveIconSource
-
reloadData
protected void reloadData() -
loadStyles
protected void loadStyles()
-