|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.AbstractImagePrototype
com.google.gwt.user.client.ui.impl.ClippedImagePrototype
public class ClippedImagePrototype
Implementation of AbstractImagePrototype for a clipped image. This
class is used internally by the image bundle generator and is not intended
for general use. It is subject to change without warning.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.AbstractImagePrototype |
|---|
AbstractImagePrototype.ImagePrototypeElement |
| Constructor Summary | |
|---|---|
ClippedImagePrototype(java.lang.String url,
int left,
int top,
int width,
int height)
|
|
| Method Summary | |
|---|---|
void |
applyTo(AbstractImagePrototype.ImagePrototypeElement imageElement)
Transforms an existing AbstractImagePrototype.ImagePrototypeElement into the image
represented by this prototype. |
void |
applyTo(Image image)
Transforms an existing Image into the image represented by this
prototype. |
AbstractImagePrototype.ImagePrototypeElement |
createElement()
Creates a new AbstractImagePrototype.ImagePrototypeElement based on the image represented by this
prototype. |
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 class com.google.gwt.user.client.ui.AbstractImagePrototype |
|---|
create |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClippedImagePrototype(java.lang.String url,
int left,
int top,
int width,
int height)
| Method Detail |
|---|
public void applyTo(Image image)
AbstractImagePrototypeImage into the image represented by this
prototype.
applyTo in class AbstractImagePrototypeimage - the instance to be transformed to match this prototypepublic void applyTo(AbstractImagePrototype.ImagePrototypeElement imageElement)
AbstractImagePrototypeAbstractImagePrototype.ImagePrototypeElement into the image
represented by this prototype.
applyTo in class AbstractImagePrototypeimageElement - an ImagePrototypeElement created by
AbstractImagePrototype.createElement()public AbstractImagePrototype.ImagePrototypeElement createElement()
AbstractImagePrototypeAbstractImagePrototype.ImagePrototypeElement based on the image represented by this
prototype. The DOM structure may not necessarily a simple
<img> element. It may be a more complex structure that
should be treated opaquely.
createElement in class AbstractImagePrototypeImagePrototypeElement corresponding to the image
represented by this prototypepublic Image createImage()
AbstractImagePrototypeImage instance based on the image represented by this
prototype.
createImage in class AbstractImagePrototypeImage based on this prototypepublic java.lang.String getHTML()
AbstractImagePrototype<img> element. It may be a more complex structure that
should be treated opaquely.
getHTML in class AbstractImagePrototype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||