public interface Window extends Frame, Component.HasCaption, Component.HasIcon
Modifier and Type | Interface and Description |
---|---|
static class |
Window.BeforeCloseEvent
Event sent right before the window is closed by an external (relative to the window content) action,
like the button in the window tab or by the Esc keyboard shortcut.
|
static interface |
Window.CloseOrigin
Marker interface for all window close types, which describes the way a window was closed.
|
static interface |
Window.Committable
Represents a window that can be committed on close.
|
static class |
Window.ContentSwitchMode
Defines how the managed main TabSheet switches a tab with the given window: hides or unloads its content.
|
static interface |
Window.HasUserIndicator
Window having a user indicator.
|
static interface |
Window.HasWorkArea
Window having a work area.
|
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 |
BROWSE_WINDOW_SUFFIX |
static java.lang.String |
CLOSE_ACTION_ID
Constant that should be passed to
Screen.close(CloseAction) methods when the screen is closed without
commit. |
static java.lang.String |
COMMIT_ACTION_ID
Constant that should be passed to
Screen.close(CloseAction) methods when the screen is closed after
commit of changes. |
static java.lang.String |
CREATE_WINDOW_SUFFIX |
static java.lang.String |
EDITOR_WINDOW_SUFFIX |
static java.lang.String |
LOOKUP_WINDOW_SUFFIX |
static java.lang.String |
SELECT_ACTION_ID
Constant that passed to
Screen.close(CloseAction) method when the lookup screen is closed with selected
items. |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addBeforeWindowCloseListener(java.util.function.Consumer<Window.BeforeCloseEvent> listener)
Registers a new before window close listener.
|
WindowContext |
getContext() |
java.lang.String |
getFocusComponent() |
Screen |
getFrameOwner() |
java.lang.String |
getMaxHeight() |
java.lang.String |
getMaxWidth() |
java.lang.String |
getMinHeight() |
java.lang.String |
getMinWidth() |
boolean |
isCloseable() |
void |
setCloseable(boolean closeable)
Sets the closable status for the window.
|
void |
setFocusComponent(java.lang.String componentId)
Sets a component to be focused after the screen is opened.
|
void |
setMaxHeight(java.lang.String maxHeight)
Sets maximum CSS height for window layout.
|
void |
setMaxWidth(java.lang.String maxWidth)
Sets maximum CSS width for window layout.
|
void |
setMinHeight(java.lang.String minHeight)
Sets minimum CSS height for window layout.
|
void |
setMinWidth(java.lang.String minWidth)
Sets minimum CSS width for window layout.
|
boolean |
validate(java.util.List<Validatable> fields)
Checks validity by invoking validators on specified components which support them
and show validation result notification.
|
boolean |
validateAll()
Checks validity by invoking validators on all components which support them
and show validation result notification.
|
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 COMMIT_ACTION_ID
Screen.close(CloseAction)
methods when the screen is closed after
commit of changes. Propagated to Screen.AfterCloseEvent
listeners.static final java.lang.String CLOSE_ACTION_ID
Screen.close(CloseAction)
methods when the screen is closed without
commit. Propagated to Screen.AfterCloseEvent
listeners.static final java.lang.String SELECT_ACTION_ID
Screen.close(CloseAction)
method when the lookup screen is closed with selected
items. Propagated to Screen.AfterCloseEvent
listeners.static final java.lang.String BROWSE_WINDOW_SUFFIX
static final java.lang.String LOOKUP_WINDOW_SUFFIX
static final java.lang.String EDITOR_WINDOW_SUFFIX
static final java.lang.String CREATE_WINDOW_SUFFIX
void setCloseable(boolean closeable)
closeable
- closeable flagboolean isCloseable()
void setMinWidth(java.lang.String minWidth)
minWidth
- minimum width@Nullable java.lang.String getMinWidth()
void setMaxWidth(java.lang.String maxWidth)
maxWidth
- maximum width@Nullable java.lang.String getMaxWidth()
void setMinHeight(java.lang.String minHeight)
minHeight
- minimum height@Nullable java.lang.String getMinHeight()
void setMaxHeight(java.lang.String maxHeight)
maxHeight
- maximum height@Nullable java.lang.String getMaxHeight()
Screen getFrameOwner()
getFrameOwner
in interface Frame
Screen
,
ScreenFragment
WindowContext getContext()
getContext
in interface Frame
void setFocusComponent(@Nullable java.lang.String componentId)
componentId
- component's ID in XML. If null, then first focusable component will be focused@Nullable java.lang.String getFocusComponent()
boolean validate(java.util.List<Validatable> fields)
boolean validateAll()
validateAll
in interface Frame
io.jmix.core.common.event.Subscription addBeforeWindowCloseListener(java.util.function.Consumer<Window.BeforeCloseEvent> listener)
listener
- the listener to register