Package io.jmix.flowui.testassist.dialog
Class OpenedDialogs
java.lang.Object
io.jmix.flowui.testassist.dialog.OpenedDialogs
Bean contains opened
Dialogs in order of opening.
Example of the storage order of dialogs:
- first opened dialog has index
0 - seconds opened dialog has index
1 - last opened dialog has index
openedDialogs.size() - 1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Map<com.vaadin.flow.component.dialog.Dialog,DialogInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses openedDialogs and removes them from the storage map.protected DialogInfomapToDialogInfo(DialogOpenedEvent event) protected voidonDialogClosed(DialogClosedEvent event) protected voidonDialogOpened(DialogOpenedEvent event)
-
Field Details
-
openedDialogs
-
-
Constructor Details
-
OpenedDialogs
public OpenedDialogs()
-
-
Method Details
-
getDialogs
- Returns:
- immutable list of
DialogInfos
-
getLastDialog
- Returns:
- the most recent opened
DialogInfoornullif no opened dialogs
-
closeOpenedDialogs
public void closeOpenedDialogs()Closes openedDialogs and removes them from the storage map. -
onDialogOpened
-
onDialogClosed
-
mapToDialogInfo
-