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
Modifier and TypeFieldDescriptionprotected CurrentUserSubstitution
protected DataManager
protected Icons
protected Integer
protected Button
protected Button
protected Messages
protected NotificationTypesRepository
protected RadioButtonGroup<ShowMode>
protected UiComponents
protected CollectionLoader<InAppNotification>
protected Table<InAppNotification>
protected UserSessionNotifier
protected 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
void
void
void
onInit
(Screen.InitEvent event) void
void
void
protected void
protected String
resolveIconSource
(InAppNotification inAppNotification) resolveSelectedFlags
(Set<InAppNotification> selected) setInitialUnreadAmount
(Integer initialUnreadAmount) protected void
protected void
protected void
protected void
updateReadStatus
(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, isScreenAction, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
dataManager
-
uiComponents
-
icons
-
messages
-
notificationTypesRepository
-
currentUserSubstitution
-
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()
-