Package io.jmix.flowui.testassist.dialog
Class OpenedDialogs
java.lang.Object
io.jmix.flowui.testassist.dialog.OpenedDialogs
Bean contains opened
Dialog
s 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
Modifier and TypeFieldDescriptionprotected static Map<com.vaadin.flow.component.dialog.Dialog,
DialogInfo> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes openedDialog
s and removes them from the storage map.protected DialogInfo
mapToDialogInfo
(DialogOpenedEvent event) protected void
onDialogClosed
(DialogClosedEvent event) protected void
onDialogOpened
(DialogOpenedEvent event)
-
Field Details
-
openedDialogs
-
-
Constructor Details
-
OpenedDialogs
public OpenedDialogs()
-
-
Method Details
-
getDialogs
- Returns:
- immutable list of
DialogInfo
s
-
getLastDialog
- Returns:
- the most recent opened
DialogInfo
ornull
if no opened dialogs
-
closeOpenedDialogs
public void closeOpenedDialogs()Closes openedDialog
s and removes them from the storage map. -
onDialogOpened
-
onDialogClosed
-
mapToDialogInfo
-