THIS
- Self-referential generic THISpublic interface FluentWindow<THIS extends FluentWindow<THIS>> extends FluentPanel<THIS>, FluentFieldEvents.FluentFocusNotifier<THIS>, FluentFieldEvents.FluentBlurNotifier<THIS>
Window
Window
FluentHasComponents.FluentComponentAttachDetachNotifier<THIS extends FluentHasComponents<THIS>>
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
FluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
default THIS |
withAssistiveDescription(com.vaadin.ui.Component... components)
Allows to specify which components contain the description for the
window.
|
default THIS |
withAssistivePostfix(String assistivePostfix)
Sets the accessibility postfix for the window caption.
|
default THIS |
withAssistivePrefix(String prefix)
Sets the accessibility prefix for the window caption.
|
default THIS |
withAssistiveRole(com.vaadin.shared.ui.window.WindowRole role)
Sets the WAI-ARIA role the window.
|
default THIS |
withClosable(boolean closable)
Sets the closable status for the window.
|
default THIS |
withCloseListener(com.vaadin.ui.Window.CloseListener listener)
Adds a CloseListener to the window.
|
default THIS |
withCloseShortcut(int keyCode,
int... modifiers)
Adds a close shortcut - pressing this key while holding down all (if any)
modifiers specified while this Window is in focus will close the Window.
|
default THIS |
withDraggable(boolean draggable)
Enables or disables that a window can be dragged (moved) by the user.
|
default THIS |
withModal(boolean modal)
Sets window modality.
|
default THIS |
withPosition(int x,
int y)
Sets the position of the window on the screen using
withPositionX(int) and withPositionY(int) |
default THIS |
withPositionX(int positionX)
Sets the distance of Window left border in pixels from left border of the
containing (main window).
|
default THIS |
withPositionY(int positionY)
Sets the distance of Window top border in pixels from top border of the
containing (main window).
|
default THIS |
withResizable(boolean resizable)
Sets window resizable.
|
default THIS |
withResizeLazy(boolean resizeLazy)
Should resize operations be lazy, i.e. should there be a delay before
layout sizes are recalculated.
|
default THIS |
withResizeListener(com.vaadin.ui.Window.ResizeListener listener)
Add a resize listener.
|
default THIS |
withTabStopBottomAssistiveText(String bottomMessage)
Sets the message that is provided to users of assistive devices when the
user reaches the bottom of the window when leaving a window with the tab
key is prevented.
|
default THIS |
withTabStopEnabled(boolean tabStop)
Set if it should be prevented to set the focus to a component outside a
non-modal window with the tab key.
|
default THIS |
withTabStopTopAssistiveText(String topMessage)
Sets the message that is provided to users of assistive devices when the
user reaches the top of the window when leaving a window with the tab key
is prevented.
|
default THIS |
withWindowMode(com.vaadin.shared.ui.window.WindowMode windowMode)
Sets the mode for the window.
|
default THIS |
withWindowModeChangeListener(com.vaadin.ui.Window.WindowModeChangeListener listener)
Adds a WindowModeChangeListener to the window.
|
default THIS |
withWindowOrderChangeListener(com.vaadin.ui.Window.WindowOrderChangeListener listener)
Adds a WindowOrderChangeListener to the window.
|
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleName
withAttachListener, withDetachListener
withContextClickListener
addContextClickListener, removeContextClickListener
withContent
getComponentCount, getContent, setContent
forEach, spliterator
withCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisible
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
withFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidth
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
withComponentAttachListener, withComponentDetachListener
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener
withScrollLeft, withScrollTop
getScrollLeft, getScrollTop, setScrollLeft, setScrollTop
withTabIndex
withAction
withActionHandler
addActionHandler, removeActionHandler
withFocusListener
withBlurListener
default THIS withCloseShortcut(int keyCode, int... modifiers)
keyCode
- the keycode for invoking the shortcutmodifiers
- the (optional) modifiers for invoking the shortcut. Can be set
to null to be explicit about not having modifiers.Window.addCloseShortcut(int, int...)
default THIS withCloseListener(com.vaadin.ui.Window.CloseListener listener)
Since Vaadin 6.5, removing windows using UI.removeWindow(Window)
does fire the CloseListener.
listener
- the CloseListener to add, not nullWindow.addCloseListener(CloseListener)
default THIS withResizeListener(com.vaadin.ui.Window.ResizeListener listener)
listener
- the listener to add, not nullWindow.addResizeListener(ResizeListener)
default THIS withWindowModeChangeListener(com.vaadin.ui.Window.WindowModeChangeListener listener)
Window.setWindowMode(WindowMode)
.listener
- the WindowModeChangeListener to add.Window.addWindowModeChangeListener(WindowModeChangeListener)
default THIS withWindowOrderChangeListener(com.vaadin.ui.Window.WindowOrderChangeListener listener)
The WindowOrderChangeEvent is fired when the order position is changed. It can happen when some window (this or other) is brought to front or detached.
The other way to listen positions of all windows in UI is
UI.addWindowOrderUpdateListener(com.vaadin.ui.UI.WindowOrderUpdateListener)
listener
- the WindowModeChangeListener to add.UI.addWindowOrderUpdateListener(com.vaadin.ui.UI.WindowOrderUpdateListener)
,
Window.addWindowOrderChangeListener(WindowOrderChangeListener)
default THIS withAssistiveDescription(com.vaadin.ui.Component... components)
components
- the components to use as descriptionWindow.setAssistiveDescription(Component...)
default THIS withAssistivePostfix(String assistivePostfix)
assistivePostfix
- String that is placed after the window captionWindow.setAssistivePostfix(String)
default THIS withAssistivePrefix(String prefix)
prefix
- String that is placed before the window captionWindow.setAssistivePrefix(String)
default THIS withAssistiveRole(com.vaadin.shared.ui.window.WindowRole role)
role
- WAI-ARIA role to set for the windowWindow.setAssistiveRole(WindowRole)
default THIS withClosable(boolean closable)
closable
- determines if the window can be closed by the user.Window.setClosable(boolean)
default THIS withDraggable(boolean draggable)
draggable
- true if the window can be dragged by the userWindow.setDraggable(boolean)
default THIS withModal(boolean modal)
Keyboard navigation is restricted by blocking the tab key at the top and bottom of the window by activating the tab stop function internally.
modal
- true if modality is to be turned onWindow.setDraggable(boolean)
default THIS withPosition(int x, int y)
withPositionX(int)
and withPositionY(int)
x
- The new x coordinate for the windowy
- The new y coordinate for the windowWindow.setPosition(int, int)
default THIS withPositionX(int positionX)
WindowMode.NORMAL
mode.positionX
- the Distance of Window left border in pixels from left border
of the containing (main window). or -1 if unspecified.Window.setPositionX(int)
default THIS withPositionY(int positionY)
WindowMode.NORMAL
mode.positionY
- the Distance of Window top border in pixels from top border of
the containing (main window). or -1 if unspecifiedWindow.setPositionY(int)
default THIS withResizable(boolean resizable)
resizable
- true if resizability is to be turned onWindow.setResizable(boolean)
default THIS withResizeLazy(boolean resizeLazy)
resizeLazy
- true to use a delay before recalculating sizes, false to
calculate immediately.Window.setResizeLazy(boolean)
default THIS withTabStopBottomAssistiveText(String bottomMessage)
This message is not visible on the screen.
bottomMessage
- String provided when the user navigates with the Tab key to
the bottom of the windowWindow.setTabStopBottomAssistiveText(String)
default THIS withTabStopEnabled(boolean tabStop)
This is meant to help users of assistive devices to not leaving the window unintentionally.
For modal windows, this function is activated automatically, while preserving the stored value of tabStop.
tabStop
- true to keep the focus inside the window when reaching the top
or bottom, false (default) to allow leaving the windowWindow.setTabStopEnabled(boolean)
default THIS withTabStopTopAssistiveText(String topMessage)
This message is not visible on the screen.
topMessage
- String provided when the user navigates with Shift-Tab keys to
the top of the windowWindow.setTabStopTopAssistiveText(String)
default THIS withWindowMode(com.vaadin.shared.ui.window.WindowMode windowMode)
windowMode
- The new modeWindowMode
,
Window.setWindowMode(WindowMode)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.