com.google.gwt.user.client.ui
Class Frame

java.lang.Object
  extended bycom.google.gwt.user.client.ui.UIObject
      extended bycom.google.gwt.user.client.ui.Widget
          extended bycom.google.gwt.user.client.ui.FocusWidget
              extended bycom.google.gwt.user.client.ui.Frame
All Implemented Interfaces:
EventListener, HasFocus, SourcesClickEvents, SourcesFocusEvents, SourcesKeyboardEvents

public class Frame
extends FocusWidget

An 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.

CSS Style Rules

Example

code


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
Frame()
          Creates an empty frame.
Frame(String url)
          Creates a frame that displays the resource at the specified URL.
 
Method Summary
 String getUrl()
          Gets the URL of the frame's resource.
 void setUrl(String url)
          Sets the URL of the resource to be displayed within the frame.
 
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
addClickListener, addFocusListener, addKeyboardListener, getTabIndex, isEnabled, onBrowserEvent, removeClickListener, removeFocusListener, removeKeyboardListener, setAccessKey, setEnabled, setFocus, setTabIndex
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onDetach, onLoad
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode
 

Constructor Detail

Frame

public Frame()
Creates an empty frame.


Frame

public Frame(String url)
Creates a frame that displays the resource at the specified URL.

Parameters:
url - the URL of the resource to be displayed
Method Detail

getUrl

public String getUrl()
Gets the URL of the frame's resource.

Returns:
the frame's URL

setUrl

public void setUrl(String url)
Sets the URL of the resource to be displayed within the frame.

Parameters:
url - the frame's new URL


This javadoc distribution was not produced by Google. The official documentation is here.