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 |
currentFragment
The current URI fragment, used to avoid sending updates if nothing has
changed.
|
String |
id
For internal use only.
|
boolean |
immediate
For internal use only.
|
boolean |
resizeLazy
For internal use only.
|
Constructor and Description |
---|
VUI() |
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) |
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 eg.
|
protected void |
onAttach() |
protected void |
onDetach() |
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, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, clear, iterator, remove
forEach, spliterator
public String id
public ShortcutActionHandler actionHandler
public ApplicationConnection connection
public boolean immediate
public boolean resizeLazy
public String currentFragment
For internal use only. May be removed or replaced in the future.
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
protected void onAttach()
onAttach
in class com.google.gwt.user.client.ui.Widget
protected void onDetach()
onDetach
in class com.google.gwt.user.client.ui.Widget
protected void onUnload()
onUnload
in class com.google.gwt.user.client.ui.Widget
protected 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.ResizeHandler
public void sendClientResized()
For internal use only. May be removed or replaced in the future.
public static void goTo(String url)
public void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing
in interface com.google.gwt.user.client.Window.ClosingHandler
public ShortcutActionHandler getShortcutActionHandler()
ShortcutActionHandler.ShortcutActionHandlerOwner
getShortcutActionHandler
in interface ShortcutActionHandler.ShortcutActionHandlerOwner
public void focus()
Focusable
public 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.HasResizeHandlers
public com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler scrollHandler)
addScrollHandler
in interface com.google.gwt.event.dom.client.HasScrollHandlers
public int getTabIndex()
getTabIndex
in interface com.google.gwt.user.client.ui.Focusable
public void setAccessKey(char key)
setAccessKey
in interface com.google.gwt.user.client.ui.Focusable
public void setFocus(boolean focused)
setFocus
in interface com.google.gwt.user.client.ui.Focusable
public void setTabIndex(int index)
setTabIndex
in interface com.google.gwt.user.client.ui.Focusable
public void storeFocus()
focusedElement
- public void focusStoredElement()
Copyright © 2019 Vaadin Ltd. All rights reserved.