Class OpenedNotifications
java.lang.Object
io.jmix.flowui.testassist.notification.OpenedNotifications
Bean contains opened
Notifications 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
FieldsModifier and TypeFieldDescriptionprotected static Map<com.vaadin.flow.component.notification.Notification,NotificationInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses openedNotifications and removes them from the storage map.protected NotificationInfoprotected voidprotected 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
NotificationInfos
-
getLastNotification
- Returns:
- the most recent opened
NotificationInfoornullif no opened notifications
-
closeOpenedNotifications
public void closeOpenedNotifications()Closes openedNotifications and removes them from the storage map. -
onNotificationOpened
-
onNotificationClosed
-
mapToNotificationInfo
-