Java com.google.gwt.user.client.ui Image fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client.ui Image fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client.ui Image.

The text is from its open source code.

Subclass

com.google.gwt.user.client.ui.Image has subclasses.
Click this link to see all its subclasses.

Constructor

Image(ImageResource resource)
Creates an image whose size and content are defined by an ImageResource.
Image(String url)
Creates an image with a specified URL.
Image(SafeUri url)
Creates an image with a specified URL.
Image(Element element)
This constructor may be used by subclasses to explicitly use an existing element.
Image()
Creates an empty image.
Image(String url, int left, int top, int width, int height)
Creates a clipped image with a specified URL and visibility rectangle.
Image(SafeUri url, int left, int top, int width, int height)
Creates a clipped image with a specified URL and visibility rectangle.

Method

HandlerRegistrationaddClickHandler(ClickHandler handler)
voidaddClickListener(ClickListener listener)
HandlerRegistrationaddDragStartHandler(DragStartHandler handler)
HandlerRegistrationaddErrorHandler(ErrorHandler handler)
HandlerRegistrationaddLoadHandler(LoadHandler handler)
HandlerRegistrationaddMouseDownHandler(MouseDownHandler handler)
voidaddMouseListener(MouseListener listener)
HandlerRegistrationaddMouseMoveHandler(MouseMoveHandler handler)
HandlerRegistrationaddMouseOutHandler(MouseOutHandler handler)
HandlerRegistrationaddMouseOverHandler(MouseOverHandler handler)
HandlerRegistrationaddMouseUpHandler(MouseUpHandler handler)
HandlerRegistrationaddTouchEndHandler(TouchEndHandler handler)
HandlerRegistrationaddTouchMoveHandler(TouchMoveHandler handler)
HandlerRegistrationaddTouchStartHandler(TouchStartHandler handler)
voidfireEvent(GwtEvent event)
Fires the given event to the handlers listening to the event's type.
StringgetAltText()
Gets the alternate text for the image.
intgetHeight()
Gets the height of the image.
intgetOriginLeft()
Gets the horizontal co-ordinate of the upper-left vertex of the image's visibility rectangle.
intgetOriginTop()
Gets the vertical co-ordinate of the upper-left vertex of the image's visibility rectangle.
StringgetUrl()
Gets the URL of the image.
intgetWidth()
Gets the width of the image.
voidprefetch(String url)
Causes the browser to pre-fetch the image at a given URL.
voidprefetch(SafeUri url)
Causes the browser to pre-fetch the image at a given URL.
voidremoveMouseListener(MouseListener listener)
voidsetAltText(String altText)
Sets the alternate text of the image for user agents that can't render the image.
voidsetResource(ImageResource resource)
Sets the url and the visibility rectangle for the image at the same time, based on an ImageResource instance.
voidsetUrl(SafeUri url)
Sets the URL of the image to be displayed.
voidsetUrl(String url)
Sets the URL of the image to be displayed.
voidsetUrlAndVisibleRect(SafeUri url, int left, int top, int width, int height)
Sets the url and the visibility rectangle for the image at the same time.
voidsetUrlAndVisibleRect(String url, int left, int top, int width, int height)
Sets the url and the visibility rectangle for the image at the same time.
voidsetVisibleRect(int left, int top, int width, int height)
Sets the visibility rectangle of an image.
Imagewrap(Element element)
Creates a Image widget that wraps an existing <img> element.