|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Frame
public class Frame
A widget that wraps an IFRAME element, which can contain an arbitrary web site.
Note that if you are using History, any
browser history items generated by the Frame will interleave with your
application's history.
public class FrameExample implements EntryPoint {
public void onModuleLoad() {
// Make a new frame, and point it at Google.
Frame frame = new Frame("http://www.google.com/");
// Add it to the root panel.
RootPanel.get().add(frame);
}
}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
(package private) static java.lang.String |
DEFAULT_STYLENAME
|
| Fields inherited from class com.google.gwt.user.client.ui.Widget |
|---|
eventsToSink |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR |
| Constructor Summary | |
|---|---|
|
Frame()
Creates an empty frame. |
protected |
Frame(Element element)
This constructor may be used by subclasses to explicitly use an existing element. |
|
Frame(java.lang.String url)
Creates a frame that displays the resource at the specified URL. |
| Method Summary | |
|---|---|
HandlerRegistration |
addLoadHandler(LoadHandler handler)
Adds a LoadEvent load handler which will be called when the frame
loads. |
java.lang.String |
getUrl()
Gets the URL of the frame's resource. |
void |
setUrl(SafeUri url)
Sets the URL of the resource to be displayed within the frame. |
void |
setUrl(java.lang.String url)
Sets the URL of the resource to be displayed within the frame. |
static Frame |
wrap(Element element)
Creates a Frame widget that wraps an existing <frame> element. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Field Detail |
|---|
static final java.lang.String DEFAULT_STYLENAME
| Constructor Detail |
|---|
public Frame()
public Frame(java.lang.String url)
url - the URL of the resource to be displayedprotected Frame(Element element)
element - the element to be used| Method Detail |
|---|
public static Frame wrap(Element element)
RootPanel.detachNow(Widget).
element - the element to be wrappedpublic HandlerRegistration addLoadHandler(LoadHandler handler)
LoadEvent load handler which will be called when the frame
loads.
addLoadHandler in interface HasLoadHandlershandler - the load handler
HandlerRegistration that can be used to remove this handlerpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - the frame's new URLpublic void setUrl(SafeUri url)
url - the frame's new URL
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||