Package io.jmix.flowui.screen
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DialogWindow.AfterCloseEvent<S extends Screen<?>>
static class
DialogWindow.AfterOpenEvent<S extends Screen<?>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addAfterCloseListener
(Consumer<DialogWindow.AfterCloseEvent<S>> listener) com.vaadin.flow.shared.Registration
addAfterOpenListener
(Consumer<DialogWindow.AfterOpenEvent<S>> listener) void
addThemeName
(String themeName) void
addThemeNames
(String... themeNames) void
protected void
applyDialogModeSettings
(S screen) void
close()
void
close
(boolean force) protected void
protected com.vaadin.flow.component.dialog.Dialog
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected com.vaadin.flow.component.html.Header
createHeader
(String screenTitle) protected com.vaadin.flow.component.button.Button
protected com.vaadin.flow.component.Component
createScreenWrapper
(S screen) protected void
fireScreenAfterShowEvent
(Screen screen) protected void
fireScreenBeforeShowEvent
(Screen screen) com.vaadin.flow.dom.Element
protected EventHub
Optional<com.vaadin.flow.component.Unit>
com.vaadin.flow.dom.ThemeList
getWidth()
Optional<com.vaadin.flow.component.Unit>
protected boolean
hasSubscriptions
(Class<?> eventClass) boolean
hasThemeName
(String themeName) protected void
initDialog
(com.vaadin.flow.component.dialog.Dialog dialog) protected void
initScreen
(S screen) boolean
boolean
boolean
boolean
isModal()
boolean
protected Messages
messages()
protected void
onCloseButtonClicked
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onDialogCloseAction
(com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent event) protected void
onDialogOpenedChanged
(com.vaadin.flow.component.dialog.GeneratedVaadinDialog.OpenedChangeEvent<com.vaadin.flow.component.dialog.Dialog> openedChangeEvent) protected void
onScreenAfterClosed
(Screen.AfterCloseEvent closeEvent) void
open()
protected <E> void
boolean
removeThemeName
(String themeName) void
removeThemeNames
(String... themeNames) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setCloseOnEsc
(boolean closeOnEsc) void
setCloseOnOutsideClick
(boolean closeOnOutsideClick) void
setDraggable
(boolean draggable) void
setHeight
(float height, com.vaadin.flow.component.Unit unit) void
void
void
setMaxHeight
(float maxHeight, com.vaadin.flow.component.Unit unit) void
setMaxHeight
(String maxHeight) void
setMaxWidth
(float maxWidth, com.vaadin.flow.component.Unit unit) void
setMaxWidth
(String maxWidth) void
setMinHeight
(float minHeight, com.vaadin.flow.component.Unit unit) void
setMinHeight
(String minHeight) void
setMinWidth
(float minWidth, com.vaadin.flow.component.Unit unit) void
setMinWidth
(String minWidth) void
setModal
(boolean modal) void
setResizable
(boolean resizable) void
void
void
setThemeName
(String themeName) void
setThemeName
(String themeName, boolean set) protected void
setValueIfPresent
(String value, Consumer<String> setter) void
setWidth
(float width, com.vaadin.flow.component.Unit unit) void
void
protected UiComponents
-
Field Details
-
BASE_STYLE_NAME
- See Also:
-
dialog
protected com.vaadin.flow.component.dialog.Dialog dialog -
screen
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
DialogWindow
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
initScreen
-
createDialog
protected com.vaadin.flow.component.dialog.Dialog createDialog() -
initDialog
protected void initDialog(com.vaadin.flow.component.dialog.Dialog dialog) -
applyDialogModeSettings
-
setValueIfPresent
-
createHeader
-
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
-
createDialogOverlay
protected com.vaadin.flow.component.orderedlayout.VerticalLayout createDialogOverlay() -
getEventHub
-
publish
-
hasSubscriptions
-
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
-
fireScreenBeforeShowEvent
-
fireScreenAfterShowEvent
-
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 interfacecom.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
- Specified by:
setWidth
in interfacecom.vaadin.flow.component.HasSize
-
setWidth
public void setWidth(float width, com.vaadin.flow.component.Unit unit) - Specified by:
setWidth
in interfacecom.vaadin.flow.component.HasSize
-
setMinWidth
- Specified by:
setMinWidth
in interfacecom.vaadin.flow.component.HasSize
-
setMinWidth
public void setMinWidth(float minWidth, com.vaadin.flow.component.Unit unit) - Specified by:
setMinWidth
in interfacecom.vaadin.flow.component.HasSize
-
setMaxWidth
- Specified by:
setMaxWidth
in interfacecom.vaadin.flow.component.HasSize
-
setMaxWidth
public void setMaxWidth(float maxWidth, com.vaadin.flow.component.Unit unit) - Specified by:
setMaxWidth
in interfacecom.vaadin.flow.component.HasSize
-
getWidth
- Specified by:
getWidth
in interfacecom.vaadin.flow.component.HasSize
-
getMinWidth
- Specified by:
getMinWidth
in interfacecom.vaadin.flow.component.HasSize
-
getMaxWidth
- Specified by:
getMaxWidth
in interfacecom.vaadin.flow.component.HasSize
-
getWidthUnit
- Specified by:
getWidthUnit
in interfacecom.vaadin.flow.component.HasSize
-
setHeight
- Specified by:
setHeight
in interfacecom.vaadin.flow.component.HasSize
-
setHeight
public void setHeight(float height, com.vaadin.flow.component.Unit unit) - Specified by:
setHeight
in interfacecom.vaadin.flow.component.HasSize
-
setMinHeight
- Specified by:
setMinHeight
in interfacecom.vaadin.flow.component.HasSize
-
setMinHeight
public void setMinHeight(float minHeight, com.vaadin.flow.component.Unit unit) - Specified by:
setMinHeight
in interfacecom.vaadin.flow.component.HasSize
-
setMaxHeight
- Specified by:
setMaxHeight
in interfacecom.vaadin.flow.component.HasSize
-
setMaxHeight
public void setMaxHeight(float maxHeight, com.vaadin.flow.component.Unit unit) - Specified by:
setMaxHeight
in interfacecom.vaadin.flow.component.HasSize
-
getHeight
- Specified by:
getHeight
in interfacecom.vaadin.flow.component.HasSize
-
getMinHeight
- Specified by:
getMinHeight
in interfacecom.vaadin.flow.component.HasSize
-
getMaxHeight
- Specified by:
getMaxHeight
in interfacecom.vaadin.flow.component.HasSize
-
getHeightUnit
- Specified by:
getHeightUnit
in interfacecom.vaadin.flow.component.HasSize
-
setSizeFull
public void setSizeFull()- Specified by:
setSizeFull
in interfacecom.vaadin.flow.component.HasSize
-
setWidthFull
public void setWidthFull()- Specified by:
setWidthFull
in interfacecom.vaadin.flow.component.HasSize
-
setHeightFull
public void setHeightFull()- Specified by:
setHeightFull
in interfacecom.vaadin.flow.component.HasSize
-
setSizeUndefined
public void setSizeUndefined()- Specified by:
setSizeUndefined
in interfacecom.vaadin.flow.component.HasSize
-
addThemeName
- Specified by:
addThemeName
in interfacecom.vaadin.flow.component.HasTheme
-
removeThemeName
- Specified by:
removeThemeName
in interfacecom.vaadin.flow.component.HasTheme
-
setThemeName
- Specified by:
setThemeName
in interfacecom.vaadin.flow.component.HasTheme
-
getThemeName
- Specified by:
getThemeName
in interfacecom.vaadin.flow.component.HasTheme
-
getThemeNames
public com.vaadin.flow.dom.ThemeList getThemeNames()- Specified by:
getThemeNames
in interfacecom.vaadin.flow.component.HasTheme
-
setThemeName
- Specified by:
setThemeName
in interfacecom.vaadin.flow.component.HasTheme
-
hasThemeName
- Specified by:
hasThemeName
in interfacecom.vaadin.flow.component.HasTheme
-
addThemeNames
- Specified by:
addThemeNames
in interfacecom.vaadin.flow.component.HasTheme
-
removeThemeNames
- Specified by:
removeThemeNames
in interfacecom.vaadin.flow.component.HasTheme
-
messages
-
uiComponents
-