com.google.gwt.user.client.ui
Class Frame
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.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
|
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.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
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
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.