|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.libideas.resources.client.impl.ImageResourcePrototype
public class ImageResourcePrototype
This is part of an implementation of the ImageBundle optimization implemented with ImmutableResourceBundle.
Constructor Summary | |
---|---|
ImageResourcePrototype(java.lang.String name,
java.lang.String url,
int left,
int top,
int width,
int height)
|
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. |
int |
getHeight()
Exists for testing purposes, not part of the ImageResource interface. |
java.lang.String |
getHTML()
Gets an HTML fragment that displays the image represented by this prototype. |
int |
getLeft()
Exists for testing purposes, not part of the ImageResource interface. |
java.lang.String |
getName()
Returns the name of the function within the ResourceBundle used to create the ResourcePrototype. |
int |
getTop()
Exists for testing purposes, not part of the ImageResource interface. |
java.lang.String |
getURL()
Exists for testing purposes, not part of the ImageResource interface. |
int |
getWidth()
Exists for testing purposes, not part of the ImageResource interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageResourcePrototype(java.lang.String name, java.lang.String url, int left, int top, int width, int height)
Method Detail |
---|
public void applyTo(com.google.gwt.user.client.ui.Image image)
ImageResource
Image
into the image represented by this
prototype.
applyTo
in interface ImageResource
image
- the instance to be transformed to match this prototypepublic com.google.gwt.user.client.ui.Image createImage()
ImageResource
Image
instance based on the image represented by this
prototype.
createImage
in interface ImageResource
Image
based on this prototypepublic int getHeight()
public java.lang.String getHTML()
ImageResource
<img>
element. It may be a more complex structure that
should be treated opaquely.
getHTML
in interface ImageResource
public int getLeft()
public java.lang.String getName()
ResourcePrototype
getName
in interface ResourcePrototype
public int getTop()
public java.lang.String getURL()
public int getWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |