Class DialogWindow<V extends View<?>>

java.lang.Object
io.jmix.flowui.view.AbstractDialogWindow<V>
io.jmix.flowui.view.DialogWindow<V>
Type Parameters:
V - a view type
All Implemented Interfaces:
com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class DialogWindow<V extends View<?>> extends AbstractDialogWindow<V>
Wrapper class representing a View opened as a dialog window.
See Also:
  • Constructor Details

    • DialogWindow

      public DialogWindow(V view)
  • Method Details

    • initView

      protected void initView(View<?> view)
      Overrides:
      initView in class AbstractDialogWindow<V extends View<?>>
    • initDialog

      protected void initDialog(com.vaadin.flow.component.dialog.Dialog dialog)
      Overrides:
      initDialog in class AbstractDialogWindow<V extends View<?>>
    • onDialogOpenedChanged

      protected void onDialogOpenedChanged(com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent openedChangeEvent)
    • open

      public void open()
      Opens the dialog.
      Overrides:
      open in class AbstractDialogWindow<V extends View<?>>
    • onViewAfterClosed

      protected void onViewAfterClosed(View.AfterCloseEvent closeEvent)
    • fireViewAfterCloseEvent

      protected void fireViewAfterCloseEvent(View.AfterCloseEvent closeEvent)
    • fireViewBeforeShowEvent

      protected void fireViewBeforeShowEvent(View<?> view)
    • fireViewOpenedEvent

      protected void fireViewOpenedEvent(View<?> view)
    • fireViewReadyEvent

      protected void fireViewReadyEvent(View<?> view)
    • addAfterOpenListener

      public com.vaadin.flow.shared.Registration addAfterOpenListener(Consumer<DialogWindow.AfterOpenEvent<V>> listener)
      Parameters:
      listener - the listener to add
      Returns:
      a Registration for removing the event listener
    • addAfterCloseListener

      public com.vaadin.flow.shared.Registration addAfterCloseListener(Consumer<DialogWindow.AfterCloseEvent<V>> listener)
      Parameters:
      listener - the listener to add
      Returns:
      a Registration for removing the event listener