Class OpenedDialogWindows

java.lang.Object
io.jmix.flowui.OpenedDialogWindows

@Component("flowui_OpenedDialogWindows") @VaadinSessionScope public class OpenedDialogWindows extends Object
Contains opened Views in OpenMode.DIALOG for corresponding UIs.
  • Field Details

    • openedDialogs

      protected Map<com.vaadin.flow.component.UI,List<View<?>>> openedDialogs
  • Constructor Details

    • OpenedDialogWindows

      public OpenedDialogWindows()
  • Method Details

    • getDialogs

      public List<View<?>> getDialogs()
      Returns a list of Views that were opened in OpenMode.DIALOG for the current UI.

      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:

      1. Order lookup view - will be first in the returned list (0 index);
      2. Order detail view -will be second in the returned list (1 index);
      3. and so on.
      Returns:
      list of Views
    • getDialogs

      public List<View<?>> getDialogs(com.vaadin.flow.component.UI ui)
      Returns a list of Views that were opened in OpenMode.DIALOG for the provided UI.

      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:

      1. Order lookup view - will be first in the returned list (0 index);
      2. Order detail view -will be second in the returned list (1 index);
      3. and so on.
      Parameters:
      ui - the UI contains opened Views
      Returns:
      list of Views
    • getCurrentDialog

      public Optional<View<?>> getCurrentDialog()
      Returns:
      the currently opened View in OpenMode.DIALOG for the current UI.
    • getCurrentDialog

      public Optional<View<?>> getCurrentDialog(com.vaadin.flow.component.UI ui)
      Parameters:
      ui - the UI contains the currently opened View
      Returns:
      the currently opened View in OpenMode.DIALOG for the provided UI.