Example usage for Java com.google.gwt.user.client.ui Image fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
HandlerRegistration | addClickHandler(ClickHandler handler) |
void | addClickListener(ClickListener listener) |
HandlerRegistration | addDragStartHandler(DragStartHandler handler) |
HandlerRegistration | addErrorHandler(ErrorHandler handler) |
HandlerRegistration | addLoadHandler(LoadHandler handler) |
HandlerRegistration | addMouseDownHandler(MouseDownHandler handler) |
void | addMouseListener(MouseListener listener) |
HandlerRegistration | addMouseMoveHandler(MouseMoveHandler handler) |
HandlerRegistration | addMouseOutHandler(MouseOutHandler handler) |
HandlerRegistration | addMouseOverHandler(MouseOverHandler handler) |
HandlerRegistration | addMouseUpHandler(MouseUpHandler handler) |
HandlerRegistration | addTouchEndHandler(TouchEndHandler handler) |
HandlerRegistration | addTouchMoveHandler(TouchMoveHandler handler) |
HandlerRegistration | addTouchStartHandler(TouchStartHandler handler) |
void | fireEvent(GwtEvent> event) Fires the given event to the handlers listening to the event's type. |
String | getAltText() Gets the alternate text for the image. |
int | getHeight() Gets the height of the image. |
int | getOriginLeft() Gets the horizontal co-ordinate of the upper-left vertex of the image's visibility rectangle. |
int | getOriginTop() Gets the vertical co-ordinate of the upper-left vertex of the image's visibility rectangle. |
String | getUrl() Gets the URL of the image. |
int | getWidth() Gets the width of the image. |
void | prefetch(String url) Causes the browser to pre-fetch the image at a given URL. |
void | prefetch(SafeUri url) Causes the browser to pre-fetch the image at a given URL. |
void | removeMouseListener(MouseListener listener) |
void | setAltText(String altText) Sets the alternate text of the image for user agents that can't render the image. |
void | setResource(ImageResource resource) Sets the url and the visibility rectangle for the image at the same time, based on an ImageResource instance. |
void | setUrl(SafeUri url) Sets the URL of the image to be displayed. |
void | setUrl(String url) Sets the URL of the image to be displayed. |
void | setUrlAndVisibleRect(SafeUri url, int left, int top, int width, int height) Sets the url and the visibility rectangle for the image at the same time. |
void | setUrlAndVisibleRect(String url, int left, int top, int width, int height) Sets the url and the visibility rectangle for the image at the same time. |
void | setVisibleRect(int left, int top, int width, int height) Sets the visibility rectangle of an image. |
Image | wrap(Element element) Creates a Image widget that wraps an existing <img> element. |