Package io.jmix.flowui
Class OpenedDialogWindows
java.lang.Object
io.jmix.flowui.OpenedDialogWindows
@Component("flowui_OpenedDialogWindows")
@VaadinSessionScope
public class OpenedDialogWindows
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentDialog
(com.vaadin.flow.component.UI ui) getDialogs
(com.vaadin.flow.component.UI ui)
-
Field Details
-
openedDialogs
-
-
Constructor Details
-
OpenedDialogWindows
public OpenedDialogWindows()
-
-
Method Details
-
getDialogs
Returns a list ofView
s that were opened inOpenMode.DIALOG
for the currentUI
.Note that the last opened dialog will be the last item in the returned list. For instance, if the user opens views as dialogs in the following order:
- Order lookup view - will be first in the returned list (0 index);
- Order detail view -will be second in the returned list (1 index);
- and so on.
- Returns:
- list of
View
s
-
getDialogs
Returns a list ofView
s that were opened inOpenMode.DIALOG
for the providedUI
.Note that the last opened dialog will be the last item in the returned list. For instance, if the user opens views as dialogs in the following order:
- Order lookup view - will be first in the returned list (0 index);
- Order detail view -will be second in the returned list (1 index);
- and so on.
-
getCurrentDialog
- Returns:
- the currently opened
View
inOpenMode.DIALOG
for the currentUI
.
-
getCurrentDialog
- Parameters:
ui
- the UI contains the currently openedView
- Returns:
- the currently opened
View
inOpenMode.DIALOG
for the providedUI
.
-