|
|||||||||||
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
A widget that displays the image at a given URL.
code
Field Summary |
Fields inherited from class java.lang.Object |
typeId, typeName |
Constructor Summary | |
Image()
Creates an empty image. |
|
Image(String url)
Creates an image with a specified URL. |
Method Summary | |
void |
addClickListener(ClickListener listener)
Adds a listener interface to receive click events. |
void |
addLoadListener(LoadListener listener)
Adds a listener interface to receive load events. |
void |
addMouseListener(MouseListener listener)
Adds a listener interface to receive mouse events. |
String |
getUrl()
Gets the URL of the image. |
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received. |
static void |
prefetch(String url)
Causes the browser to pre-fetch the image at a given URL. |
void |
removeClickListener(ClickListener listener)
Removes a previously added listener interface. |
void |
removeLoadListener(LoadListener listener)
Removes a previously added listener interface. |
void |
removeMouseListener(MouseListener listener)
Removes a previously added listener interface. |
void |
setUrl(String url)
Sets the URL of the image to be displayed. |
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 |
public Image()
public Image(String url)
url
- the URL of the image to be displayedMethod Detail |
public static void prefetch(String url)
url
- the URL of the image to be prefetchedpublic void addClickListener(ClickListener listener)
SourcesClickEvents
addClickListener
in interface SourcesClickEvents
listener
- the listener interface to addpublic void addLoadListener(LoadListener listener)
SourcesLoadEvents
addLoadListener
in interface SourcesLoadEvents
listener
- the listener interface to addpublic void addMouseListener(MouseListener listener)
SourcesMouseEvents
addMouseListener
in interface SourcesMouseEvents
listener
- the listener interface to addpublic String getUrl()
public void onBrowserEvent(Event event)
EventListener
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Widget
public void removeClickListener(ClickListener listener)
SourcesClickEvents
removeClickListener
in interface SourcesClickEvents
listener
- the listener interface to removepublic void removeLoadListener(LoadListener listener)
SourcesLoadEvents
removeLoadListener
in interface SourcesLoadEvents
listener
- the listener interface to removepublic void removeMouseListener(MouseListener listener)
SourcesMouseEvents
removeMouseListener
in interface SourcesMouseEvents
listener
- the listener interface to removepublic void setUrl(String url)
url
- the image URL
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |