Class DialogWindow<S extends Screen<?>>

java.lang.Object
io.jmix.flowui.screen.DialogWindow<S>
All Implemented Interfaces:
com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasTheme, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class DialogWindow<S extends Screen<?>> extends Object implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasTheme, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
See Also:
  • Field Details

    • BASE_STYLE_NAME

      protected static final String BASE_STYLE_NAME
      See Also:
    • dialog

      protected com.vaadin.flow.component.dialog.Dialog dialog
    • screen

      protected S extends Screen<?> screen
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • DialogWindow

      public DialogWindow(S screen)
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • initScreen

      protected void initScreen(S screen)
    • createDialog

      protected com.vaadin.flow.component.dialog.Dialog createDialog()
    • initDialog

      protected void initDialog(com.vaadin.flow.component.dialog.Dialog dialog)
    • applyDialogModeSettings

      protected void applyDialogModeSettings(S screen)
    • setValueIfPresent

      protected void setValueIfPresent(@Nullable String value, Consumer<String> setter)
    • createHeader

      protected com.vaadin.flow.component.html.Header createHeader(String screenTitle)
    • createHeaderCloseButton

      protected com.vaadin.flow.component.button.Button createHeaderCloseButton()
    • onCloseButtonClicked

      protected void onCloseButtonClicked(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • createScreenWrapper

      protected com.vaadin.flow.component.Component createScreenWrapper(S screen)
    • createDialogOverlay

      protected com.vaadin.flow.component.orderedlayout.VerticalLayout createDialogOverlay()
    • getEventHub

      protected EventHub getEventHub()
    • publish

      protected <E> void publish(Class<E> eventType, E event)
    • hasSubscriptions

      protected boolean hasSubscriptions(Class<?> eventClass)
    • getScreen

      public S getScreen()
    • open

      public void open()
    • close

      public void close()
    • close

      public void close(boolean force)
    • closeInternal

      protected void closeInternal()
    • onDialogOpenedChanged

      protected void onDialogOpenedChanged(com.vaadin.flow.component.dialog.GeneratedVaadinDialog.OpenedChangeEvent<com.vaadin.flow.component.dialog.Dialog> openedChangeEvent)
    • onScreenAfterClosed

      protected void onScreenAfterClosed(Screen.AfterCloseEvent closeEvent)
    • fireScreenBeforeShowEvent

      protected void fireScreenBeforeShowEvent(Screen screen)
    • fireScreenAfterShowEvent

      protected void fireScreenAfterShowEvent(Screen screen)
    • onDialogCloseAction

      protected void onDialogCloseAction(com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent event)
    • addAfterOpenListener

      public com.vaadin.flow.shared.Registration addAfterOpenListener(Consumer<DialogWindow.AfterOpenEvent<S>> listener)
    • addAfterCloseListener

      public com.vaadin.flow.shared.Registration addAfterCloseListener(Consumer<DialogWindow.AfterCloseEvent<S>> listener)
    • getElement

      public com.vaadin.flow.dom.Element getElement()
      Specified by:
      getElement in interface com.vaadin.flow.component.HasElement
    • isCloseOnEsc

      public boolean isCloseOnEsc()
    • setCloseOnEsc

      public void setCloseOnEsc(boolean closeOnEsc)
    • isCloseOnOutsideClick

      public boolean isCloseOnOutsideClick()
    • setCloseOnOutsideClick

      public void setCloseOnOutsideClick(boolean closeOnOutsideClick)
    • isModal

      public boolean isModal()
    • setModal

      public void setModal(boolean modal)
    • isDraggable

      public boolean isDraggable()
    • setDraggable

      public void setDraggable(boolean draggable)
    • isResizable

      public boolean isResizable()
    • setResizable

      public void setResizable(boolean resizable)
    • setWidth

      public void setWidth(String width)
      Specified by:
      setWidth in interface com.vaadin.flow.component.HasSize
    • setWidth

      public void setWidth(float width, com.vaadin.flow.component.Unit unit)
      Specified by:
      setWidth in interface com.vaadin.flow.component.HasSize
    • setMinWidth

      public void setMinWidth(String minWidth)
      Specified by:
      setMinWidth in interface com.vaadin.flow.component.HasSize
    • setMinWidth

      public void setMinWidth(float minWidth, com.vaadin.flow.component.Unit unit)
      Specified by:
      setMinWidth in interface com.vaadin.flow.component.HasSize
    • setMaxWidth

      public void setMaxWidth(String maxWidth)
      Specified by:
      setMaxWidth in interface com.vaadin.flow.component.HasSize
    • setMaxWidth

      public void setMaxWidth(float maxWidth, com.vaadin.flow.component.Unit unit)
      Specified by:
      setMaxWidth in interface com.vaadin.flow.component.HasSize
    • getWidth

      public String getWidth()
      Specified by:
      getWidth in interface com.vaadin.flow.component.HasSize
    • getMinWidth

      public String getMinWidth()
      Specified by:
      getMinWidth in interface com.vaadin.flow.component.HasSize
    • getMaxWidth

      public String getMaxWidth()
      Specified by:
      getMaxWidth in interface com.vaadin.flow.component.HasSize
    • getWidthUnit

      public Optional<com.vaadin.flow.component.Unit> getWidthUnit()
      Specified by:
      getWidthUnit in interface com.vaadin.flow.component.HasSize
    • setHeight

      public void setHeight(String height)
      Specified by:
      setHeight in interface com.vaadin.flow.component.HasSize
    • setHeight

      public void setHeight(float height, com.vaadin.flow.component.Unit unit)
      Specified by:
      setHeight in interface com.vaadin.flow.component.HasSize
    • setMinHeight

      public void setMinHeight(String minHeight)
      Specified by:
      setMinHeight in interface com.vaadin.flow.component.HasSize
    • setMinHeight

      public void setMinHeight(float minHeight, com.vaadin.flow.component.Unit unit)
      Specified by:
      setMinHeight in interface com.vaadin.flow.component.HasSize
    • setMaxHeight

      public void setMaxHeight(String maxHeight)
      Specified by:
      setMaxHeight in interface com.vaadin.flow.component.HasSize
    • setMaxHeight

      public void setMaxHeight(float maxHeight, com.vaadin.flow.component.Unit unit)
      Specified by:
      setMaxHeight in interface com.vaadin.flow.component.HasSize
    • getHeight

      public String getHeight()
      Specified by:
      getHeight in interface com.vaadin.flow.component.HasSize
    • getMinHeight

      public String getMinHeight()
      Specified by:
      getMinHeight in interface com.vaadin.flow.component.HasSize
    • getMaxHeight

      public String getMaxHeight()
      Specified by:
      getMaxHeight in interface com.vaadin.flow.component.HasSize
    • getHeightUnit

      public Optional<com.vaadin.flow.component.Unit> getHeightUnit()
      Specified by:
      getHeightUnit in interface com.vaadin.flow.component.HasSize
    • setSizeFull

      public void setSizeFull()
      Specified by:
      setSizeFull in interface com.vaadin.flow.component.HasSize
    • setWidthFull

      public void setWidthFull()
      Specified by:
      setWidthFull in interface com.vaadin.flow.component.HasSize
    • setHeightFull

      public void setHeightFull()
      Specified by:
      setHeightFull in interface com.vaadin.flow.component.HasSize
    • setSizeUndefined

      public void setSizeUndefined()
      Specified by:
      setSizeUndefined in interface com.vaadin.flow.component.HasSize
    • addThemeName

      public void addThemeName(String themeName)
      Specified by:
      addThemeName in interface com.vaadin.flow.component.HasTheme
    • removeThemeName

      public boolean removeThemeName(String themeName)
      Specified by:
      removeThemeName in interface com.vaadin.flow.component.HasTheme
    • setThemeName

      public void setThemeName(String themeName)
      Specified by:
      setThemeName in interface com.vaadin.flow.component.HasTheme
    • getThemeName

      public String getThemeName()
      Specified by:
      getThemeName in interface com.vaadin.flow.component.HasTheme
    • getThemeNames

      public com.vaadin.flow.dom.ThemeList getThemeNames()
      Specified by:
      getThemeNames in interface com.vaadin.flow.component.HasTheme
    • setThemeName

      public void setThemeName(String themeName, boolean set)
      Specified by:
      setThemeName in interface com.vaadin.flow.component.HasTheme
    • hasThemeName

      public boolean hasThemeName(String themeName)
      Specified by:
      hasThemeName in interface com.vaadin.flow.component.HasTheme
    • addThemeNames

      public void addThemeNames(String... themeNames)
      Specified by:
      addThemeNames in interface com.vaadin.flow.component.HasTheme
    • removeThemeNames

      public void removeThemeNames(String... themeNames)
      Specified by:
      removeThemeNames in interface com.vaadin.flow.component.HasTheme
    • messages

      protected Messages messages()
    • uiComponents

      protected UiComponents uiComponents()