public interface DialogWindow extends Window
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkArea
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name that is used to register a client type specific screen implementation in
UiComponents . |
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
void |
center()
Sets this window to be centered on screen.
|
float |
getDialogHeight() |
SizeUnit |
getDialogHeightUnit() |
java.lang.String |
getDialogStylename() |
float |
getDialogWidth() |
SizeUnit |
getDialogWidthUnit() |
int |
getPositionX() |
int |
getPositionY() |
WindowMode |
getWindowMode() |
boolean |
isCloseOnClickOutside() |
boolean |
isDraggable() |
boolean |
isModal() |
boolean |
isResizable() |
void |
setCloseOnClickOutside(boolean closeOnClickOutside)
Sets if window can be closed by click outside of window content (by modality curtain).
|
void |
setDialogHeight(java.lang.String dialogHeight)
Sets dialog height.
|
void |
setDialogStylename(java.lang.String stylename)
Sets the custom CSS style.
|
void |
setDialogWidth(java.lang.String dialogWidth)
Sets dialog width.
|
void |
setDraggable(boolean draggable)
Enables or disables that a window can be dragged (moved) by the user.
|
void |
setModal(boolean modal)
Sets window modality.
|
default void |
setPosition(int x,
int y)
Sets the position of the window on the screen.
|
void |
setPositionX(int positionX)
Sets the distance of Window left border in pixels from left border of the containing (main window).
|
void |
setPositionY(int positionY)
Sets the distance of Window top border in pixels from top border of the containing (main window).
|
void |
setResizable(boolean resizable)
Sets window resizable.
|
void |
setWindowMode(WindowMode mode)
Sets the mode for the window.
|
addBeforeWindowCloseListener, getContext, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isCloseable, setCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAll
addFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validate
expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, add, remove, remove, removeAll
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, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
getExpandRatio, setExpandRatio
static final java.lang.String NAME
UiComponents
.void setDialogWidth(@Nullable java.lang.String dialogWidth)
dialogWidth
- widthfloat getDialogWidth()
SizeUnit getDialogWidthUnit()
void setDialogHeight(@Nullable java.lang.String dialogHeight)
dialogHeight
- heightfloat getDialogHeight()
SizeUnit getDialogHeightUnit()
void setDialogStylename(@Nullable java.lang.String stylename)
stylename
- style name@Nullable java.lang.String getDialogStylename()
void setResizable(boolean resizable)
resizable
- resizable flagboolean isResizable()
void setDraggable(boolean draggable)
draggable
- draggable flagboolean isDraggable()
void setModal(boolean modal)
modal
- modal flagboolean isModal()
void setCloseOnClickOutside(boolean closeOnClickOutside)
closeOnClickOutside
- true if window to be closed by click outside of window content (by modality curtain)boolean isCloseOnClickOutside()
void setWindowMode(WindowMode mode)
mode
- modeWindowMode getWindowMode()
void center()
default void setPosition(int x, int y)
x
- left position in pixelsy
- top position in pixelsvoid setPositionX(int positionX)
positionX
- left position in pixelsint getPositionX()
void setPositionY(int positionY)
positionY
- top position in pixelsint getPositionY()