Class OpenedNotifications
java.lang.Object
io.jmix.flowui.testassist.notification.OpenedNotifications
Bean contains opened
Notification
s in order of opening.
Example of the storage order of notifications:
- first opened notification has index
0
- seconds opened notification has index
1
- last opened notification has index
openedNotifications.size() - 1
-
Field Summary
Modifier and TypeFieldDescriptionprotected static Map<com.vaadin.flow.component.notification.Notification,
NotificationInfo> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes openedNotification
s and removes them from the storage map.protected NotificationInfo
protected void
protected void
-
Field Details
-
openedNotifications
protected static Map<com.vaadin.flow.component.notification.Notification,NotificationInfo> openedNotifications
-
-
Constructor Details
-
OpenedNotifications
public OpenedNotifications()
-
-
Method Details
-
getNotifications
- Returns:
- immutable list of
NotificationInfo
s
-
getLastNotification
- Returns:
- the most recent opened
NotificationInfo
ornull
if no opened notifications
-
closeOpenedNotifications
public void closeOpenedNotifications()Closes openedNotification
s and removes them from the storage map. -
onNotificationOpened
-
onNotificationClosed
-
mapToNotificationInfo
-