public interface ViewWindowConfigurator extends ComponentConfigurator<ViewWindowConfigurator>, Serializable
View
display.ComponentConfigurator.BaseComponentConfigurator
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_WINDOW_HEIGHT
Default window height
|
static String |
DEFAULT_WINDOW_STYLE_NAME
Default View Window style name
|
static String |
DEFAULT_WINDOW_WIDTH
Default window width
|
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, 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, withShortcutListener
static final String DEFAULT_WINDOW_STYLE_NAME
static final String DEFAULT_WINDOW_WIDTH
static final String DEFAULT_WINDOW_HEIGHT
ViewWindowConfigurator closable(boolean closable)
closable
- true
to show a close button in the view Window header, false
to not
show itViewWindowConfigurator resizable(boolean resizable)
resizable
- whether to allow the view Window to be resizedViewWindowConfigurator draggable(boolean draggable)
draggable
- whether the view Window is draggableViewWindowConfigurator position(int x, int y)
x
- The x coordinate for the windowy
- The y coordinate for the windowViewWindowConfigurator 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.Copyright © 2019 The Holon Platform. All rights reserved.