Class JmixSideDialogOverlay
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.dialog.Dialog
io.jmix.flowui.kit.component.sidedialog.JmixSideDialogOverlay
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.dialog.DialogVariant>,Serializable
@Tag("jmix-side-dialog")
@JsModule("./src/side-dialog/jmix-side-dialog.js")
public class JmixSideDialogOverlay
extends com.vaadin.flow.component.dialog.Dialog
The extension of the
Dialog component that functions as a drawer panel. It has a popping-out animation of the
dialog and enables configuring the dialog position.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.dialog.Dialog
com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogDraggedEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent, com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetWidth()booleanprotected voidvoidsetFullscreenOnSmallDevices(boolean fullscreenOnSmallDevice) Sets whether the dialog should be displayed in fullscreen mode on small devices.voidvoidSets the height of the dialog when vertical position is configured (SideDialogPosition.TOP,SideDialogPosition.BOTTOM).voidsetMaxHeight(String value) voidsetMaxWidth(String value) voidsetMinHeight(String value) voidsetMinWidth(String value) voidsetSideDialogPosition(SideDialogPosition position) Sets the dialog position.voidvoidSets the full width of the dialog when horizontal position is configured (SideDialogPosition.LEFT,SideDialogPosition.RIGHT,SideDialogPosition.INLINE_STARTorSideDialogPosition.INLINE_END).Methods inherited from class com.vaadin.flow.component.dialog.Dialog
add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addDraggedListener, addOpenedChangeListener, addResizeListener, close, getAriaLabel, getClassNames, getFooter, getHeader, getHeaderTitle, getLeft, getOverlayRole, getStyle, getTop, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, setAriaLabel, setClassName, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeaderTitle, setLeft, setModal, setOpened, setOverlayRole, setResizable, setTop, setVisibleMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeightUnit, getWidthUnit, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidthMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
-
Constructor Details
-
JmixSideDialogOverlay
public JmixSideDialogOverlay()
-
-
Method Details
-
getWidth
- Specified by:
getWidthin interfacecom.vaadin.flow.component.HasSize- Overrides:
getWidthin classcom.vaadin.flow.component.dialog.Dialog
-
setWidth
- Specified by:
setWidthin interfacecom.vaadin.flow.component.HasSize- Overrides:
setWidthin classcom.vaadin.flow.component.dialog.Dialog
-
getMinWidth
- Specified by:
getMinWidthin interfacecom.vaadin.flow.component.HasSize- Overrides:
getMinWidthin classcom.vaadin.flow.component.dialog.Dialog
-
setMinWidth
- Specified by:
setMinWidthin interfacecom.vaadin.flow.component.HasSize- Overrides:
setMinWidthin classcom.vaadin.flow.component.dialog.Dialog
-
getMaxWidth
- Specified by:
getMaxWidthin interfacecom.vaadin.flow.component.HasSize- Overrides:
getMaxWidthin classcom.vaadin.flow.component.dialog.Dialog
-
setMaxWidth
- Specified by:
setMaxWidthin interfacecom.vaadin.flow.component.HasSize- Overrides:
setMaxWidthin classcom.vaadin.flow.component.dialog.Dialog
-
getHeight
- Specified by:
getHeightin interfacecom.vaadin.flow.component.HasSize- Overrides:
getHeightin classcom.vaadin.flow.component.dialog.Dialog
-
setHeight
- Specified by:
setHeightin interfacecom.vaadin.flow.component.HasSize- Overrides:
setHeightin classcom.vaadin.flow.component.dialog.Dialog
-
getMinHeight
- Specified by:
getMinHeightin interfacecom.vaadin.flow.component.HasSize- Overrides:
getMinHeightin classcom.vaadin.flow.component.dialog.Dialog
-
setMinHeight
- Specified by:
setMinHeightin interfacecom.vaadin.flow.component.HasSize- Overrides:
setMinHeightin classcom.vaadin.flow.component.dialog.Dialog
-
getMaxHeight
- Specified by:
getMaxHeightin interfacecom.vaadin.flow.component.HasSize- Overrides:
getMaxHeightin classcom.vaadin.flow.component.dialog.Dialog
-
setMaxHeight
- Specified by:
setMaxHeightin interfacecom.vaadin.flow.component.HasSize- Overrides:
setMaxHeightin classcom.vaadin.flow.component.dialog.Dialog
-
setWidthFull
public void setWidthFull()Sets the full width of the dialog when horizontal position is configured (SideDialogPosition.LEFT,SideDialogPosition.RIGHT,SideDialogPosition.INLINE_STARTorSideDialogPosition.INLINE_END). -
setHeightFull
public void setHeightFull()Sets the height of the dialog when vertical position is configured (SideDialogPosition.TOP,SideDialogPosition.BOTTOM). -
getSideDialogPosition
- Returns:
- the dialog position
-
setSideDialogPosition
Sets the dialog position. The default value isSideDialogPosition.RIGHT.- Parameters:
position- the dialog position
-
isFullscreenOnSmallDevices
public boolean isFullscreenOnSmallDevices()- Returns:
trueif the dialog should be displayed in fullscreen mode on small devices
-
setFullscreenOnSmallDevices
public void setFullscreenOnSmallDevices(boolean fullscreenOnSmallDevice) Sets whether the dialog should be displayed in fullscreen mode on small devices.The default value is
true.- Parameters:
fullscreenOnSmallDevice- fullscreen option
-
onNodeAttach
protected void onNodeAttach()
-