public class AbstractWindow extends Screen implements Window, LegacyFrame, Component.HasXmlDescriptor, Window.Wrapper, SecuredActionsHolder, ChangeTracker
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEventWindow.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseOrigin, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor<T extends Entity>, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup<T extends Entity>, Window.TopLevelWindow, Window.WrapperFrame.MessageMode, Frame.MessageType, Frame.NotificationTypeExpandingLayout.ExpandDirectionComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider| Modifier and Type | Field and Description |
|---|---|
protected Frame |
frame |
protected Messages |
messages |
static java.lang.String |
UNKNOWN_CLOSE_ACTION_ID |
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, NAME, SELECT_ACTION_IDAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELSNO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION| Constructor and Description |
|---|
AbstractWindow() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component component)
Adds a component to this container.
|
void |
add(Component childComponent,
int index) |
void |
addAction(Action action)
Add an action to the component
|
void |
addAction(Action action,
int index)
Add an action to the component with index.
|
Subscription |
addBeforeWindowCloseListener(java.util.function.Consumer<Window.BeforeCloseEvent> listener)
Registers a new before window close listener.
|
void |
addFacet(Facet facet)
Registers the passed non-visual component in the frame.
|
void |
addStyleName(java.lang.String styleName)
Adds one or more style names to this component.
|
void |
addTimer(Timer timer)
Add a
Timer component to this screen. |
protected void |
afterShow(Screen.AfterShowEvent event) |
void |
applySettings(Settings settings)
This method is called when the screen is opened to restore settings saved in the database for the current user.
|
protected void |
beforeClose(Screen.BeforeCloseEvent event) |
OperationResult |
closeWithDiscard()
Ignores the unsaved changes and closes the screen with
FrameOwner.WINDOW_DISCARD_AND_CLOSE_ACTION action. |
void |
deleteSettings()
Deletes screen settings associated with this screen.
|
void |
expand(Component component) |
void |
expand(Component component,
java.lang.String height,
java.lang.String width) |
protected java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object... params)
Get localized message from the message pack associated with this frame or window, and use it as a format
string for parameters provided.
|
Action |
getAction(java.lang.String id) |
java.util.Collection<Action> |
getActions() |
ActionsPermissions |
getActionsPermissions() |
Component.Alignment |
getAlignment() |
java.lang.String |
getCaption() |
<T> T |
getCompanion() |
java.lang.Object |
getComponent() |
Component |
getComponent(int index)
Returns the component at the given position.
|
Component |
getComponent(java.lang.String id)
Get component belonging to the whole components tree below this container.
|
java.util.Collection<Component> |
getComponents()
Get all components belonging to the whole components tree below this container
|
java.lang.Object |
getComposition() |
Window.ContentSwitchMode |
getContentSwitchMode() |
WindowContext |
getContext() |
java.lang.String |
getDescription()
Screen description is used by the framework to show some specified information, e.g.
|
DialogOptions |
getDialogOptions() |
DsContext |
getDsContext() |
ExpandingLayout.ExpandDirection |
getExpandDirection() |
float |
getExpandRatio(Component component) |
Facet |
getFacet(java.lang.String id)
Finds registered facet by ID.
|
java.util.stream.Stream<Facet> |
getFacets() |
java.lang.String |
getFocusComponent() |
Frame |
getFrame() |
Screen |
getFrameOwner() |
float |
getHeight()
Get component height in
Component.getHeightSizeUnit() |
SizeUnit |
getHeightSizeUnit()
Gets the height property units.
|
java.lang.String |
getIcon()
Get icon source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
MarginInfo |
getMargin() |
java.lang.String |
getMaxHeight() |
java.lang.String |
getMaxWidth() |
protected java.lang.String |
getMessage(java.lang.String key)
Get localized message from the message pack associated with this frame or window.
|
java.lang.String |
getMessagesPack() |
java.lang.String |
getMinHeight() |
java.lang.String |
getMinWidth() |
Component |
getOwnComponent(java.lang.String id)
Get component directly owned by this container.
|
java.util.Collection<Component> |
getOwnComponents()
Get all components directly owned by this container
|
java.util.stream.Stream<Component> |
getOwnComponentsStream()
Get stream of components directly owned by this container
|
Component |
getParent() |
protected int |
getScreenHashCode(Screen screen) |
Settings |
getSettings() |
boolean |
getSpacing() |
java.lang.String |
getStyleName()
Styles implementation is client-type-specific.
|
Timer |
getTimer(java.lang.String id)
Returns a
Timer added to this screen. |
float |
getWidth()
Get component width in
Component.getWidthUnits() |
SizeUnit |
getWidthSizeUnit()
Gets the width property units.
|
WindowManager |
getWindowManager()
|
Frame |
getWrappedFrame() |
Window |
getWrappedWindow()
INTERNAL.
|
org.dom4j.Element |
getXmlDescriptor() |
protected boolean |
handleValidationErrors(ValidationErrors errors) |
boolean |
hasUnsavedChanges() |
int |
indexOf(Component component) |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
protected void |
init(Screen.InitEvent initEvent) |
boolean |
isAttributeAccessControlEnabled()
Whether automatic applying of attribute access rules enabled.
|
boolean |
isCloseable() |
boolean |
isEnabled()
Is the component enabled?
Note that this method only returns the status of the component and does not take parents into account. |
boolean |
isEnabledRecursive() |
boolean |
isExpanded(Component component) |
boolean |
isResponsive()
Is the component responsive?
|
protected boolean |
isSameScreen(Screen openedScreen)
Compares this screen with an already opened screen.
|
boolean |
isValid()
Check validity by invoking validators on all components which support them.
|
boolean |
isVisible()
Is the component visible?
A component is visible only if all its parents are also visible. |
boolean |
isVisibleRecursive() |
protected void |
postValidate(ValidationErrors errors)
Hook to be implemented in subclasses.
|
protected boolean |
preClose(java.lang.String actionId)
Hook to be implemented in subclasses.
|
void |
ready()
Hook to be implemented in subclasses.
|
void |
remove(Component component)
Removes a component from this container.
|
void |
removeAction(Action action)
Remove the action from the component
|
void |
removeAction(java.lang.String id)
Remove the action by its ID.
|
void |
removeAll()
Removes all components from this container.
|
void |
removeAllActions()
Remove all actions from the component
|
void |
removeBeforeWindowCloseListener(java.util.function.Consumer<Window.BeforeCloseEvent> listener)
Removes a previously added listener.
|
void |
removeFacet(Facet facet)
Removes the non-visual component from the frame.
|
void |
removeStyleName(java.lang.String styleName)
Removes one or more style names from component.
|
void |
resetExpanded() |
void |
saveSettings()
This method is called when the screen is closed to save the screen settings to the database.
|
void |
setAlignment(Component.Alignment alignment) |
void |
setCaption(java.lang.String caption)
Set the screen caption.
|
void |
setCloseable(boolean closeable)
Sets the closable status for the window.
|
void |
setCompanion(java.lang.Object companion)
INTERNAL.
|
void |
setContentSwitchMode(Window.ContentSwitchMode mode) |
void |
setDescription(java.lang.String description)
Screen description is used by the framework to show some specified information, e.g.
|
void |
setDsContext(DsContext dsContext)
INTERNAL.
|
void |
setEnabled(boolean enabled)
Sets the component enabled state.
|
void |
setExpandRatio(Component component,
float ratio)
Sets expand ratio for the component.
|
void |
setFocusComponent(java.lang.String componentId)
Set a component to be focused after the screen is opened.
|
void |
setFrame(Frame frame) |
void |
setHeight(java.lang.String height)
Set component height in
Component.getHeightUnits() |
void |
setIcon(java.lang.String icon)
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
void |
setIconFromSet(Icons.Icon icon)
Set an icon from an icon set.
|
void |
setId(java.lang.String id)
Sets id of the screen.
|
void |
setMargin(MarginInfo marginInfo) |
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 |
setMessagesPack(java.lang.String name) |
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.
|
void |
setParent(Component parent)
INTERNAL.
ComponentContainer.add(Component) is normally used for adding components
to a parent and the used method will call this method implicitly. |
void |
setResponsive(boolean responsive)
Sets component to be responsive by width and height.
|
void |
setSpacing(boolean enabled) |
void |
setStyleName(java.lang.String styleName)
Sets one or more style names of the component, replacing any
previous styles.
|
void |
setVisible(boolean visible)
Sets visibility value for the component.
|
void |
setWidth(java.lang.String width)
Set component width in
Component.getWidthSizeUnit()} |
protected void |
setWindow(Window window) |
void |
setXmlDescriptor(org.dom4j.Element element) |
protected void |
showValidationErrors(ValidationErrors errors) |
<X> X |
unwrap(java.lang.Class<X> internalComponentClass)
Get client specific component instance.
|
<X> X |
unwrapComposition(java.lang.Class<X> internalCompositionClass)
Get the outmost external container of client specific component instance.
|
void |
validate()
Check validity by invoking validators on all components which support them.
|
boolean |
validate(java.util.List<Validatable> fields)
Check validity by invoking validators on specified components which support them
and show validation result notification.
|
protected void |
validateAdditionalRules(ValidationErrors errors) |
boolean |
validateAll()
Check validity by invoking validators on all components which support them
and show validation result notification.
|
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, applyDataLoadingSettings, close, closeWithDefaultAction, fireEvent, getBeanLocator, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSaveScreenHistoryOnClose, isSaveSettingsOnClose, setBeanLocator, setExtensions, setScreenData, setUiEventListeners, showclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addCloseWithCommitListener, addListener, close, close, closeAndRun, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeCloseWithCommitListener, removeListenergetFacetNNgetComponentNNadd, focusFirstComponent, getComponentNN, removegetHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFullgetActionNN, getSubPartopenEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPagepublic static final java.lang.String UNKNOWN_CLOSE_ACTION_ID
protected Frame frame
@Inject protected Messages messages
public WindowManager getWindowManager()
HasWindowManagergetWindowManager in interface HasWindowManagergetWindowManager in interface Windowpublic Frame getWrappedFrame()
getWrappedFrame in interface Frame.Wrapper@Order(value=110) @Subscribe protected void init(Screen.InitEvent initEvent)
@Order(value=110) @Subscribe protected void afterShow(Screen.AfterShowEvent event)
@Order(value=110) @Subscribe protected void beforeClose(Screen.BeforeCloseEvent event)
public OperationResult closeWithDiscard()
FrameOwner.WINDOW_DISCARD_AND_CLOSE_ACTION action.public boolean hasUnsavedChanges()
hasUnsavedChanges in interface ChangeTrackerpublic void init(java.util.Map<java.lang.String,java.lang.Object> params)
params - parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType) and similar methods, or set in
screens.xml for this registered screenpublic void setId(java.lang.String id)
Screenpublic Component getParent()
public void setParent(Component parent)
ComponentComponentContainer.add(Component) is normally used for adding components
to a parent and the used method will call this method implicitly.public boolean isEnabled()
Componentpublic boolean isEnabledRecursive()
isEnabledRecursive in interface Componentpublic void setEnabled(boolean enabled)
ComponentsetEnabled in interface Componentenabled - enabled flagpublic boolean isVisible()
Componentpublic void setVisible(boolean visible)
ComponentsetVisible in interface Componentvisible - visible flagpublic boolean isVisibleRecursive()
isVisibleRecursive in interface Componentpublic float getHeight()
ComponentComponent.getHeightSizeUnit()public SizeUnit getHeightSizeUnit()
ComponentgetHeightSizeUnit in interface Componentpublic void setHeight(java.lang.String height)
ComponentComponent.getHeightUnits()public float getWidth()
ComponentComponent.getWidthUnits()public SizeUnit getWidthSizeUnit()
ComponentgetWidthSizeUnit in interface Componentpublic void setWidth(java.lang.String width)
ComponentComponent.getWidthSizeUnit()}public Component.Alignment getAlignment()
getAlignment in interface Componentpublic void setAlignment(Component.Alignment alignment)
setAlignment in interface Componentpublic boolean isResponsive()
ComponentisResponsive in interface Componentpublic void setResponsive(boolean responsive)
ComponentsetResponsive in interface Componentresponsive - responsive flagpublic java.lang.String getIcon()
Component.HasIcongetIcon in interface Component.HasIconpublic void setIcon(java.lang.String icon)
Component.HasIconsetIcon in interface Component.HasIconpublic void setIconFromSet(Icons.Icon icon)
Component.HasIconsetIconFromSet in interface Component.HasIconpublic void add(Component component)
ComponentContaineradd in interface ComponentContainercomponent - a component to addpublic void remove(Component component)
ComponentContainerremove in interface ComponentContainercomponent - a component to removepublic void removeAll()
ComponentContainerremoveAll in interface ComponentContainerpublic Component getOwnComponent(java.lang.String id)
ComponentContainergetOwnComponent in interface ComponentContainer@Nullable public Component getComponent(java.lang.String id)
ComponentContainergetComponent in interface ComponentContainerpublic java.util.Collection<Component> getOwnComponents()
ComponentContainergetOwnComponents in interface ComponentContainerpublic java.util.stream.Stream<Component> getOwnComponentsStream()
ComponentContainergetOwnComponentsStream in interface ComponentContainerpublic java.util.Collection<Component> getComponents()
ComponentContainergetComponents in interface ComponentContainerpublic java.lang.Object getComponent()
getComponent in interface Component.Wrapperpublic java.lang.Object getComposition()
getComposition in interface Component.Wrapperpublic void expand(Component component, java.lang.String height, java.lang.String width)
expand in interface ExpandingLayoutpublic void expand(Component component)
expand in interface ExpandingLayoutpublic void resetExpanded()
resetExpanded in interface ExpandingLayoutpublic boolean isExpanded(Component component)
isExpanded in interface ExpandingLayoutpublic ExpandingLayout.ExpandDirection getExpandDirection()
getExpandDirection in interface ExpandingLayoutpublic java.lang.String getMessagesPack()
getMessagesPack in interface LegacyFramepublic void setMessagesPack(java.lang.String name)
setMessagesPack in interface LegacyFrameprotected java.lang.String getMessage(java.lang.String key)
key - message keyMessages.getMessage(String, String)protected java.lang.String formatMessage(java.lang.String key,
java.lang.Object... params)
key - message keyparams - parameter valuesMessages.formatMessage(String, String, Object...)public boolean isValid()
FrameisValid in interface FrameisValid in interface LegacyFramepublic void validate()
throws ValidationException
Framevalidate in interface Framevalidate in interface LegacyFrameValidationException - if some components are currently in invalid statepublic void add(Component childComponent, int index)
add in interface OrderedContainerpublic int indexOf(Component component)
indexOf in interface OrderedContainer@Nullable public Component getComponent(int index)
OrderedContainergetComponent in interface OrderedContainerindex - component index@Nullable public <T> T getCompanion()
getCompanion in interface LegacyFramepublic void setCompanion(java.lang.Object companion)
public Frame getFrame()
getFrame in interface Component.BelongToFramepublic void setFrame(Frame frame)
setFrame in interface Component.BelongToFramepublic java.lang.String getStyleName()
ComponentgetStyleName in interface Componentpublic void setStyleName(java.lang.String styleName)
ComponentsetStyleName in interface ComponentstyleName - one or more style names separated by space.public void addStyleName(java.lang.String styleName)
ComponentaddStyleName in interface ComponentstyleName - one or more style names separated by space.public void removeStyleName(java.lang.String styleName)
ComponentremoveStyleName in interface ComponentstyleName - one or more style names separated by space.public <X> X unwrap(java.lang.Class<X> internalComponentClass)
Componentcom.vaadin.ui.TextField vTextField = textField.unwrap(com.vaadin.ui.TextField.class);
public <X> X unwrapComposition(java.lang.Class<X> internalCompositionClass)
Componentcom.vaadin.ui.Layout vLayout = table.unwrapComposition(com.vaadin.ui.Layout.class);
unwrapComposition in interface ComponentX - type of internal classinternalCompositionClass - class of underlying composition implementation based on Vaadin or Swingpublic void setSpacing(boolean enabled)
setSpacing in interface HasSpacingpublic boolean getSpacing()
getSpacing in interface HasSpacingpublic void setMargin(MarginInfo marginInfo)
public MarginInfo getMargin()
public void addAction(Action action)
ActionsHolderaddAction in interface ActionsHolderpublic void addAction(Action action, int index)
ActionsHolderaddAction in interface ActionsHolderpublic void removeAction(@Nullable
Action action)
ActionsHolderremoveAction in interface ActionsHolderpublic void removeAction(@Nullable
java.lang.String id)
ActionsHolderremoveAction in interface ActionsHolderpublic void removeAllActions()
ActionsHolderremoveAllActions in interface ActionsHolderpublic java.util.Collection<Action> getActions()
getActions in interface ActionsHolder@Nullable public Action getAction(java.lang.String id)
getAction in interface ActionsHolderpublic org.dom4j.Element getXmlDescriptor()
getXmlDescriptor in interface Component.HasXmlDescriptorgetXmlDescriptor in interface LegacyFramepublic void setXmlDescriptor(org.dom4j.Element element)
setXmlDescriptor in interface Component.HasXmlDescriptorsetXmlDescriptor in interface LegacyFramepublic void setCloseable(boolean closeable)
WindowsetCloseable in interface Windowcloseable - closeable flagpublic boolean isCloseable()
isCloseable in interface Windowpublic void setMinWidth(java.lang.String minWidth)
WindowsetMinWidth in interface WindowminWidth - minimum widthpublic java.lang.String getMinWidth()
getMinWidth in interface Windowpublic void setMaxWidth(java.lang.String maxWidth)
WindowsetMaxWidth in interface WindowmaxWidth - maximum widthpublic java.lang.String getMaxWidth()
getMaxWidth in interface Windowpublic void setMinHeight(java.lang.String minHeight)
WindowsetMinHeight in interface WindowminHeight - minimum heightpublic java.lang.String getMinHeight()
getMinHeight in interface Windowpublic void setMaxHeight(java.lang.String maxHeight)
WindowsetMaxHeight in interface WindowmaxHeight - maximum heightpublic java.lang.String getMaxHeight()
getMaxHeight in interface Windowpublic Screen getFrameOwner()
getFrameOwner in interface FramegetFrameOwner in interface WindowScreen,
ScreenFragmentpublic WindowContext getContext()
getContext in interface FramegetContext in interface WindowgetContext in interface LegacyFramepublic DsContext getDsContext()
getDsContext in interface LegacyFrameDsContext of the current frame or windowpublic void setDsContext(DsContext dsContext)
LegacyFramesetDsContext in interface LegacyFramepublic java.lang.String getCaption()
getCaption in interface Component.HasCaptionsetCaption(String)public void setCaption(java.lang.String caption)
init(java.util.Map), overrides the value from XML.setCaption in interface Component.HasCaptioncaption - captionpublic java.lang.String getDescription()
getDescription in interface Component.HasDescriptionpublic void setDescription(java.lang.String description)
setDescription in interface Component.HasDescriptiondescription - the new description to setpublic Window getWrappedWindow()
getWrappedWindow in interface Window.Wrapperpublic void applySettings(Settings settings)
You can override it to restore custom settings.
For example:
public void applySettings(Settings settings) {
super.applySettings(settings);
String visible = settings.get(hintBox.getId()).attributeValue("visible");
if (visible != null)
hintBox.setVisible(Boolean.valueOf(visible));
}
applySettings in interface WindowapplySettings in class Screensettings - settings object loaded from the database for the current userpublic void saveSettings()
saveSettings in interface WindowsaveSettings in class Screenpublic void deleteSettings()
ScreendeleteSettings in interface WindowdeleteSettings in class Screenpublic Settings getSettings()
getSettings in interface WindowgetSettings in class Screenpublic void setFocusComponent(java.lang.String componentId)
WindowsetFocusComponent in interface WindowcomponentId - component's ID in XML. If null, then first focusable component will be focusedpublic java.lang.String getFocusComponent()
getFocusComponent in interface Windowpublic void addTimer(Timer timer)
WindowTimer component to this screen.
UiComponents factory.
public Timer getTimer(java.lang.String id)
WindowTimer added to this screen.public boolean validate(java.util.List<Validatable> fields)
Windowpublic DialogOptions getDialogOptions()
getDialogOptions in interface WindowOpenMode.DIALOG.public boolean isAttributeAccessControlEnabled()
public void ready()
protected void postValidate(ValidationErrors errors)
validateAll() at the end of standard validation.errors - the list of validation errors. Caller fills it by errors found during the default validation.
Overridden method should add into it errors found by custom validation.protected boolean preClose(java.lang.String actionId)
actionId - a string that is passed to one of Screen.close(com.haulmont.cuba.gui.screen.CloseAction) methods by calling code to identify itself.
Can be an Action ID, or a constant like Window.COMMIT_ACTION_ID or
Window.CLOSE_ACTION_ID.protected void validateAdditionalRules(ValidationErrors errors)
protected void showValidationErrors(ValidationErrors errors)
protected boolean isSameScreen(Screen openedScreen)
ScreenisSameScreen in class ScreenopenedScreen - already opened screenprotected int getScreenHashCode(Screen screen)
public boolean validateAll()
postValidate(ValidationErrors) hook to
support additional validation.
You should override this method in subclasses ONLY if you want to completely replace the validation process,
otherwise use postValidate(ValidationErrors).
validateAll in interface FramevalidateAll in interface WindowvalidateAll in interface LegacyFrameprotected boolean handleValidationErrors(ValidationErrors errors)
public ActionsPermissions getActionsPermissions()
getActionsPermissions in interface SecuredActionsHolderpublic Window.ContentSwitchMode getContentSwitchMode()
public void setContentSwitchMode(Window.ContentSwitchMode mode)
public Subscription addBeforeWindowCloseListener(java.util.function.Consumer<Window.BeforeCloseEvent> listener)
WindowaddBeforeWindowCloseListener in interface Windowlistener - the listener to registerpublic void removeBeforeWindowCloseListener(java.util.function.Consumer<Window.BeforeCloseEvent> listener)
WindowremoveBeforeWindowCloseListener in interface Windowlistener - the listener to removepublic void setExpandRatio(Component component, float ratio)
SupportsExpandRatiosetExpandRatio in interface SupportsExpandRatiocomponent - component to expand with ratioratio - ratiopublic float getExpandRatio(Component component)
getExpandRatio in interface SupportsExpandRatiocomponent - component for which returns ratiopublic void addFacet(Facet facet)
Frame@Nullable public Facet getFacet(java.lang.String id)
Framepublic void removeFacet(Facet facet)
FrameremoveFacet in interface Framefacet - facet