com.vaadin.terminal.gwt.client.ui.root
Class VRoot

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.vaadin.terminal.gwt.client.ui.root.VRoot
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.Window.ClosingHandler, Focusable, ShortcutActionHandler.ShortcutActionHandlerOwner, Iterable<com.google.gwt.user.client.ui.Widget>

public class VRoot
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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
static String CLICK_EVENT_ID
          Identifies the click event
static String FRAGMENT_VARIABLE
           
static String NOTIFICATION_HTML_CONTENT_NOT_ALLOWED
           
static String RESIZE_LAZY
          Attribute name for the lazy resize setting .
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VRoot()
           
 
Method Summary
 void focus()
          Sets focus to this widget.
 ShortcutActionHandler getShortcutActionHandler()
          Returns the ShortCutActionHandler currently used or null if there is currently no shortcutactionhandler
 String getTheme()
           
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  void onAttach()
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
protected  void onDetach()
           
 void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
           
 void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
           
protected  void windowSizeMaybeChanged(int newWidth, int newHeight)
          Called when the window might have been resized.
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, remove
 

Field Detail

FRAGMENT_VARIABLE

public static final String FRAGMENT_VARIABLE
See Also:
Constant Field Values

NOTIFICATION_HTML_CONTENT_NOT_ALLOWED

public static final String NOTIFICATION_HTML_CONTENT_NOT_ALLOWED
See Also:
Constant Field Values

CLICK_EVENT_ID

public static final String CLICK_EVENT_ID
Identifies the click event

See Also:
Constant Field Values

RESIZE_LAZY

public static final String RESIZE_LAZY
Attribute name for the lazy resize setting .

See Also:
Constant Field Values
Constructor Detail

VRoot

public VRoot()
Method Detail

onAttach

protected void onAttach()
Overrides:
onAttach in class com.google.gwt.user.client.ui.Widget

onDetach

protected void onDetach()
Overrides:
onDetach in class com.google.gwt.user.client.ui.Widget

windowSizeMaybeChanged

protected void windowSizeMaybeChanged(int newWidth,
                                      int newHeight)
Called when the window might have been resized.

Parameters:
newWidth - The new width of the window
newHeight - The new height of the window

getTheme

public String getTheme()

isEmbedded

public boolean isEmbedded()
Returns true if the body is NOT generated, i.e if someone else has made the page that we're running in. Otherwise we're in charge of the whole page.

Returns:
true if we're running embedded

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

onResize

public void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
Specified by:
onResize in interface com.google.gwt.event.logical.shared.ResizeHandler

goTo

public static void goTo(String url)

onWindowClosing

public void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
Specified by:
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandler

getShortcutActionHandler

public ShortcutActionHandler getShortcutActionHandler()
Description copied from interface: ShortcutActionHandler.ShortcutActionHandlerOwner
Returns the ShortCutActionHandler currently used or null if there is currently no shortcutactionhandler

Specified by:
getShortcutActionHandler in interface ShortcutActionHandler.ShortcutActionHandlerOwner

focus

public void focus()
Description copied from interface: Focusable
Sets focus to this widget.

Specified by:
focus in interface Focusable


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.