public class DefaultViewWindowConfigurator extends com.holonplatform.vaadin.internal.components.builders.AbstractComponentConfigurator<com.vaadin.ui.Window,ViewWindowConfigurator> implements ViewWindowConfigurator
ViewWindowConfigurator implementation.ComponentConfigurator.BaseComponentConfiguratorDEFAULT_WINDOW_HEIGHT, DEFAULT_WINDOW_STYLE_NAME, DEFAULT_WINDOW_WIDTH| Constructor and Description |
|---|
DefaultViewWindowConfigurator(com.vaadin.ui.Window window) |
| Modifier and Type | Method and Description |
|---|---|
ViewWindowConfigurator |
closable(boolean closable)
Sets whether to show a close button in the view Window header.
|
ViewWindowConfigurator |
draggable(boolean draggable)
Set whether the view Window is draggable.
|
ViewWindowConfigurator |
position(int x,
int y)
Sets the position of the view window on the screen.
|
ViewWindowConfigurator |
resizable(boolean resizable)
Sets whether to allow the view Window to be resized.
|
ViewWindowConfigurator |
withCloseShortcut(int keyCode,
int... modifiers)
Adds a close shortcut to the view window - pressing this key while holding down all (if any) modifiers specified
while the window is in focus will close the window.
|
caption, captionAsHtml, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcaption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerpublic DefaultViewWindowConfigurator(com.vaadin.ui.Window window)
public ViewWindowConfigurator closable(boolean closable)
ViewWindowConfiguratorclosable in interface ViewWindowConfiguratorclosable - true to show a close button in the view Window header, false to not
show itpublic ViewWindowConfigurator resizable(boolean resizable)
ViewWindowConfiguratorresizable in interface ViewWindowConfiguratorresizable - whether to allow the view Window to be resizedpublic ViewWindowConfigurator draggable(boolean draggable)
ViewWindowConfiguratordraggable in interface ViewWindowConfiguratordraggable - whether the view Window is draggablepublic ViewWindowConfigurator position(int x, int y)
ViewWindowConfiguratorposition in interface ViewWindowConfiguratorx - The x coordinate for the windowy - The y coordinate for the windowpublic ViewWindowConfigurator withCloseShortcut(int keyCode, int... modifiers)
ViewWindowConfiguratorwithCloseShortcut in interface ViewWindowConfiguratorkeyCode - 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.Copyright © 2019 The Holon Platform. All rights reserved.