public class VUI extends com.google.gwt.user.client.ui.SimplePanel implements com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.user.client.Window.ClosingHandler, ShortcutActionHandler.ShortcutActionHandlerOwner, Focusable, com.google.gwt.user.client.ui.Focusable, com.google.gwt.event.logical.shared.HasResizeHandlers, com.google.gwt.event.dom.client.HasScrollHandlers
| Modifier and Type | Field and Description |
|---|---|
ShortcutActionHandler |
actionHandler
For internal use only.
|
ApplicationConnection |
connection
For internal use only.
|
String |
id
For internal use only.
|
boolean |
resizeLazy
For internal use only.
|
| Constructor and Description |
|---|
VUI()
Constructs a widget for an UI.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler resizeHandler) |
com.google.gwt.event.shared.HandlerRegistration |
addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler scrollHandler) |
void |
focus()
Sets focus to this widget.
|
void |
focusStoredElement()
Restores the previously stored focus Element.
|
ShortcutActionHandler |
getShortcutActionHandler()
Returns the ShortCutActionHandler currently used or null if there is
currently no shortcutactionhandler.
|
int |
getTabIndex() |
String |
getTheme()
Deprecated.
as of 7.3. Use
UIConnector.getActiveTheme() instead. |
static void |
goTo(String url)
Opens the given URL in the current browser window.
|
boolean |
isEmbedded()
Returns true if the body is NOT generated, i.e if someone else has made
the page that we're running in.
|
protected boolean |
isMonitoringParentSize()
Returns true if the size of the parent should be checked periodically and
the application should react to its changes.
|
void |
makeScrollable()
Ensures the widget is scrollable e.g.
|
protected void |
onLoad()
Start to periodically monitor for parent element resizes if embedded
application (e.g.
|
void |
onResize(com.google.gwt.event.logical.shared.ResizeEvent event) |
protected void |
onUnload()
Stop monitoring for parent element resizes.
|
void |
onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event) |
protected void |
performSizeCheck()
Called when the window or parent div might have been resized.
|
void |
sendClientResized()
Send new dimensions to the server.
|
void |
setAccessKey(char key) |
void |
setFocus(boolean focused) |
void |
setTabIndex(int index) |
void |
storeFocus()
Allows to store the currently focused Element.
|
protected void |
windowSizeMaybeChanged(int newWindowWidth,
int newWindowHeight)
Deprecated.
|
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, clear, iterator, removeforEach, spliteratorpublic String id
public ShortcutActionHandler actionHandler
public ApplicationConnection connection
public boolean resizeLazy
protected void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widgetprotected void onUnload()
onUnload in class com.google.gwt.user.client.ui.Widgetprotected void performSizeCheck()
@Deprecated protected void windowSizeMaybeChanged(int newWindowWidth, int newWindowHeight)
performSizeCheck()newWindowWidth - The new width of the windownewWindowHeight - The new height of the window@Deprecated public String getTheme()
UIConnector.getActiveTheme() instead.public boolean isEmbedded()
protected boolean isMonitoringParentSize()
public void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
onResize in interface com.google.gwt.event.logical.shared.ResizeHandlerpublic void sendClientResized()
For internal use only. May be removed or replaced in the future.
public static void goTo(String url)
url - the URL to navigate topublic void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandlerpublic ShortcutActionHandler getShortcutActionHandler()
ShortcutActionHandler.ShortcutActionHandlerOwnergetShortcutActionHandler in interface ShortcutActionHandler.ShortcutActionHandlerOwnerpublic void focus()
Focusablepublic void makeScrollable()
For internal use only. May be removed or replaced in the future.
public com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler resizeHandler)
addResizeHandler in interface com.google.gwt.event.logical.shared.HasResizeHandlerspublic com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler scrollHandler)
addScrollHandler in interface com.google.gwt.event.dom.client.HasScrollHandlerspublic int getTabIndex()
getTabIndex in interface com.google.gwt.user.client.ui.Focusablepublic void setAccessKey(char key)
setAccessKey in interface com.google.gwt.user.client.ui.Focusablepublic void setFocus(boolean focused)
setFocus in interface com.google.gwt.user.client.ui.Focusablepublic void setTabIndex(int index)
setTabIndex in interface com.google.gwt.user.client.ui.Focusablepublic void storeFocus()
focusedElement - public void focusStoredElement()
Copyright © 2021 Vaadin Ltd. All rights reserved.