Package io.jmix.ui.component
Interface DialogWindow
- All Superinterfaces:
ActionsHolder,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,ComponentContainer,ExpandingLayout,Frame,HasComponents,HasMargin,HasSpacing,HasSubParts,OrderedContainer,SupportsExpandRatio,Window
- All Known Implementing Classes:
DialogWindowImpl
UI component that represents a dialog window of application.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.ExpandingLayout
ExpandingLayout.ExpandDirectionNested classes/interfaces inherited from interface io.jmix.ui.component.Window
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkArea -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName that is used to register a client type specific screen implementation inUiComponents.Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZEFields inherited from interface io.jmix.ui.component.Window
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID -
Method Summary
Modifier and TypeMethodDescriptionvoidcenter()Sets this window to be centered on screen.floatfloatintintbooleanbooleanbooleanisModal()booleanvoidsetCloseOnClickOutside(boolean closeOnClickOutside) Sets if window can be closed by click outside of window content (by modality curtain).voidsetDialogHeight(String dialogHeight) Sets dialog height.voidsetDialogStylename(String stylename) Sets the custom CSS style.voidsetDialogWidth(String dialogWidth) Sets dialog width.voidsetDraggable(boolean draggable) Enables or disables that a window can be dragged (moved) by the user.voidsetModal(boolean modal) Sets window modality.default voidsetPosition(int x, int y) Sets the position of the window on the screen.voidsetPositionX(int positionX) Sets the distance of Window left border in pixels from left border of the containing (main window).voidsetPositionY(int positionY) Sets the distance of Window top border in pixels from top border of the containing (main window).voidsetResizable(boolean resizable) Sets window resizable.voidsetWindowMode(WindowMode mode) Sets the mode for the window.Methods inherited from interface io.jmix.ui.component.ActionsHolder
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActionsMethods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.ComponentContainer
add, add, remove, remove, removeAllMethods inherited from interface io.jmix.ui.component.ExpandingLayout
expand, getExpandDirection, isExpanded, resetExpandedMethods inherited from interface io.jmix.ui.component.Frame
addFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validateMethods inherited from interface io.jmix.ui.component.HasComponents
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamMethods inherited from interface io.jmix.ui.component.HasMargin
getMargin, setMargin, setMargin, setMarginMethods inherited from interface io.jmix.ui.component.HasSpacing
getSpacing, setSpacingMethods inherited from interface io.jmix.ui.component.OrderedContainer
add, getComponent, getComponentNN, indexOfMethods inherited from interface io.jmix.ui.component.SupportsExpandRatio
getExpandRatio, setExpandRatioMethods inherited from interface io.jmix.ui.component.Window
addBeforeWindowCloseListener, getContext, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isCloseable, setCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAll
-
Field Details
-
NAME
Name that is used to register a client type specific screen implementation inUiComponents.- See Also:
-
-
Method Details
-
setDialogWidth
Sets dialog width.- Parameters:
dialogWidth- width
-
getDialogWidth
float getDialogWidth()- Returns:
- dialog width
-
getDialogWidthUnit
SizeUnit getDialogWidthUnit()- Returns:
- dialog width unit
-
setDialogHeight
Sets dialog height.- Parameters:
dialogHeight- height
-
getDialogHeight
float getDialogHeight()- Returns:
- height
-
getDialogHeightUnit
SizeUnit getDialogHeightUnit()- Returns:
- dialog height unit
-
setDialogStylename
Sets the custom CSS style.- Parameters:
stylename- style name
-
getDialogStylename
- Returns:
- custom style name
-
setResizable
void setResizable(boolean resizable) Sets window resizable.- Parameters:
resizable- resizable flag
-
isResizable
boolean isResizable()- Returns:
- true if window is resizable by the end-user, otherwise false.
-
setDraggable
void setDraggable(boolean draggable) Enables or disables that a window can be dragged (moved) by the user. By default a window is draggable.- Parameters:
draggable- draggable flag
-
isDraggable
boolean isDraggable()- Returns:
- true if window is draggable
-
setModal
void setModal(boolean modal) Sets window modality. When a modal window is open, components outside that window cannot be accessed.- Parameters:
modal- modal flag
-
isModal
boolean isModal()- Returns:
- true if window is modal
-
setCloseOnClickOutside
void setCloseOnClickOutside(boolean closeOnClickOutside) Sets if window can be closed by click outside of window content (by modality curtain).- Parameters:
closeOnClickOutside- true if window to be closed by click outside of window content (by modality curtain)
-
isCloseOnClickOutside
boolean isCloseOnClickOutside()- Returns:
- true if window can be closed by click outside of window content (by modality curtain)
-
setWindowMode
Sets the mode for the window.- Parameters:
mode- mode
-
getWindowMode
WindowMode getWindowMode()- Returns:
- the mode of the window
-
center
void center()Sets this window to be centered on screen. -
setPosition
default void setPosition(int x, int y) Sets the position of the window on the screen.- Parameters:
x- left position in pixelsy- top position in pixels
-
setPositionX
void setPositionX(int positionX) Sets the distance of Window left border in pixels from left border of the containing (main window).- Parameters:
positionX- left position in pixels
-
getPositionX
int getPositionX()- Returns:
- the distance of Window left border in pixels from left border of the containing (main window) or -1 if unspecified
-
setPositionY
void setPositionY(int positionY) Sets the distance of Window top border in pixels from top border of the containing (main window).- Parameters:
positionY- top position in pixels
-
getPositionY
int getPositionY()- Returns:
- distance of Window top border in pixels from top border of the containing (main window) or -1 if unspecified
-