Java com.vaadin.ui Window fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui Window fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui Window.

The text is from its open source code.

Subclass

com.vaadin.ui.Window has subclasses.
Click this link to see all its subclasses.

Field

IntegerbringToFront
Used to keep the right order of windows if multiple windows are brought to front in a single changeset.

Constructor

Window()
Creates a new, empty window.
Window(String caption)
Creates a new, empty window with a given title.
Window(String caption, Component content)
Creates a new, empty window with the given content and title.

Method

voidaddActionHandler(Handler actionHandler)
RegistrationaddCloseListener(CloseListener listener)
Adds a CloseListener to the window.
voidaddCloseShortcut(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.
RegistrationaddFocusListener(FocusListener listener)
RegistrationaddListener(Component.Listener listener)
RegistrationaddShortcutListener(ShortcutListener shortcut)
voidaddStyleName(String style)
RegistrationaddWindowModeChangeListener(WindowModeChangeListener listener)
Adds a WindowModeChangeListener to the window.
voidcenter()
Sets this window to be centered relative to its parent window.
voidclose()
Method that handles window closing (from UI).
voidfocus()
Cause the window to be brought on top of other windows and gain keyboard focus.
StringgetCaption()
ComponentgetContent()
floatgetHeight()
UnitgetHeightUnits()
HasComponentsgetParent()
intgetPositionX()
Gets the distance of Window left border in pixels from left border of the containing (main window) when the window is in WindowMode#NORMAL .
intgetPositionY()
Gets the distance of Window top border in pixels from top border of the containing (main window) when the window is in WindowMode#NORMAL state, or when next set to that state.
UIgetUI()
Finds a UI ancestor of this connector.
floatgetWidth()
UnitgetWidthUnits()
booleanisAttached()
booleanisModal()
booleanisVisible()
voidremoveActionHandler(Handler actionHandler)
voidsetCaption(String caption)
voidsetCaptionAsHtml(boolean captionAsHtml)
Sets whether the caption is rendered as HTML.
voidsetClosable(boolean closable)
Sets the closable status for the window.
voidsetCloseShortcut(int keyCode, int... modifiers)
This is the old way of adding a keyboard shortcut to close a Window - to preserve compatibility with existing code under the new functionality, this method now first removes all registered close shortcuts, then adds the default ESCAPE shortcut key, and then attempts to add the shortcut provided as parameters to this method.
voidsetContent(Component content)
Sets the content of this container.
voidsetDraggable(boolean draggable)
Enables or disables that a window can be dragged (moved) by the user.
voidsetHeight(String height)
voidsetHeight(float height, Unit unit)
voidsetIcon(Resource icon)
Sets the component's icon.
voidsetId(String id)
voidsetModal(boolean modal)
Sets window modality.
voidsetPosition(int x, int y)
Sets the position of the window on the screen using #setPositionX(int) and #setPositionY(int) .
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.
voidsetResizeLazy(boolean resizeLazy)
Should resize operations be lazy, i.e.
voidsetResponsive(boolean responsive)
Toggles responsiveness of this component.
voidsetSizeFull()
voidsetSizeUndefined()
voidsetStyleName(String style)
voidsetVisible(boolean visible)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)
voidsetWidthUndefined()
voidsetWindowMode(WindowMode windowMode)
Sets the mode for the window.