|
|||||||||
| 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.Image
com.google.gwt.gadgets.client.ui.GadgetImage
public class GadgetImage
Image that will be cached by the Gadget Container unless this is not executed in a Gadget Container.
The image URL appearing on the browser will not be the one set here but the URL of the cached image on the Gadget container's server.
| 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 |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
GadgetImage()
Constructs a new GadgetImage. |
|
GadgetImage(java.lang.String url)
Constructs a new GadgetImage given the image's URL. |
|
GadgetImage(java.lang.String url,
int left,
int top,
int width,
int height)
Creates a clipped image with a specified URL and visibility rectangle. |
|
| Method Summary | |
|---|---|
void |
setUrl(java.lang.String url)
Sets the image's URL. |
void |
setUrlAndVisibleRect(java.lang.String url,
int left,
int top,
int width,
int height)
Sets the url and the visibility rectangle for the image at the same time. |
| Methods inherited from class com.google.gwt.user.client.ui.Image |
|---|
addClickHandler, addClickListener, addErrorHandler, addLoadHandler, addLoadListener, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, getHeight, getOriginLeft, getOriginTop, getUrl, getWidth, prefetch, removeClickListener, removeLoadListener, removeMouseListener, removeMouseWheelListener, setResource, setVisibleRect, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, 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.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public GadgetImage()
public GadgetImage(java.lang.String url)
url - The URL of the image that will be cached
public GadgetImage(java.lang.String url,
int left,
int top,
int width,
int height)
url - the URL of the image to be displayed and that will be cachedleft - the horizontal co-ordinate of the upper-left vertex of the
visibility rectangletop - the vertical co-ordinate of the upper-left vertex of the
visibility rectanglewidth - the width of the visibility rectangleheight - the height of the visibility rectangle| Method Detail |
|---|
public void setUrl(java.lang.String url)
setUrl in class com.google.gwt.user.client.ui.Imageurl - The URL of the image
public void setUrlAndVisibleRect(java.lang.String url,
int left,
int top,
int width,
int height)
setUrlAndVisibleRect in class com.google.gwt.user.client.ui.Imageurl - the image URLleft - the horizontal coordinate of the upper-left vertex of the
visibility rectangletop - the vertical coordinate of the upper-left vertex of the
visibility rectanglewidth - the width of the visibility rectangleheight - the height of the visibility rectangle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||