com.google.gwt.libideas.resources.client
Interface ImageResource

All Superinterfaces:
ResourcePrototype

public interface ImageResource
extends ResourcePrototype

Test for ImageBundle optimizations.


Method Summary
 void applyTo(com.google.gwt.user.client.ui.Image image)
          Transforms an existing Image into the image represented by this prototype.
 com.google.gwt.user.client.ui.Image createImage()
          Creates a new Image instance based on the image represented by this prototype.
 java.lang.String getHTML()
          Gets an HTML fragment that displays the image represented by this prototype.
 
Methods inherited from interface com.google.gwt.libideas.resources.client.ResourcePrototype
getName
 

Method Detail

applyTo

void applyTo(com.google.gwt.user.client.ui.Image image)
Transforms an existing Image into the image represented by this prototype.

Parameters:
image - the instance to be transformed to match this prototype

createImage

com.google.gwt.user.client.ui.Image createImage()
Creates a new Image instance based on the image represented by this prototype.

Returns:
a new Image based on this prototype

getHTML

java.lang.String getHTML()
Gets an HTML fragment that displays the image represented by this prototype. The HTML returned is not necessarily a simple <img> element. It may be a more complex structure that should be treated opaquely.

Returns:
the HTML representation of this prototype