com.google.gwt.user.client.ui
Class RootLayoutPanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.LayoutPanel
com.google.gwt.user.client.ui.RootLayoutPanel
- All Implemented Interfaces:
- HasHandlers, EventListener, AnimatedLayout, HasWidgets, IndexedPanel, ProvidesResize, RequiresResize, java.lang.Iterable<Widget>
public class RootLayoutPanel
- extends LayoutPanel
A singleton implementation of LayoutPanel that always attaches itself
to the document body (i.e. RootPanel.get()).
This panel automatically calls RequiresResize.onResize() on itself
when initially created, and whenever the window is resized.
NOTE: This widget will only work in standards mode, which requires
that the HTML page in which it is run have an explicit <!DOCTYPE>
declaration.
Example
|
Method Summary |
static RootLayoutPanel |
get()
Gets the singleton instance of RootLayoutPanel. |
| Methods inherited from class com.google.gwt.user.client.ui.LayoutPanel |
add, animate, animate, forceLayout, getWidgetContainerElement, insert, onResize, remove, setWidgetBottomHeight, setWidgetHorizontalPosition, setWidgetLeftRight, setWidgetLeftWidth, setWidgetRightWidth, setWidgetTopBottom, setWidgetTopHeight, setWidgetVerticalPosition, setWidgetVisible |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
clear |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
get
public static RootLayoutPanel get()
- Gets the singleton instance of RootLayoutPanel. This instance will always
be attached to the document body via
RootPanel.get().
Note that, unlike RootPanel.get(String), this class provides no way
to get an instance for any element on the page other than the document
body. This is because we know of no way to get resize events for anything
but the window.