|
|||||||||
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.maryanovsky.gwtutils.client.ui.UrlImagePrototype
public class UrlImagePrototype
An image prototype which returns images from a certain URL.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.AbstractImagePrototype |
---|
AbstractImagePrototype.ImagePrototypeElement |
Constructor Summary | |
---|---|
UrlImagePrototype(String url)
Creates a new UrlImagePrototype with the specified image URL. |
|
UrlImagePrototype(String url,
Size size)
Creates a new UrlImagePrototype with the specified URL and an
optional size. |
|
UrlImagePrototype(String url,
Size imageSize,
boolean isPng)
Creates a new UrlImagePrototype with the specified URL, an
optional size and a flag specifying whether the image is a PNG image. |
Method Summary | |
---|---|
void |
applyTo(Image image)
|
Image |
createImage()
|
String |
getHTML()
|
String |
getUrl()
Returns the image's URL. |
Methods inherited from class com.google.gwt.user.client.ui.AbstractImagePrototype |
---|
applyTo, create, createElement, getSafeHtml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlImagePrototype(String url)
UrlImagePrototype
with the specified image URL.
public UrlImagePrototype(String url, Size size)
UrlImagePrototype
with the specified URL and an
optional size.
public UrlImagePrototype(String url, Size imageSize, boolean isPng)
UrlImagePrototype
with the specified URL, an
optional size and a flag specifying whether the image is a PNG image.
PNG images will have the PNG hack applied to them under IE versions which
don't support PNG transparency. If you are using a PNG image on such a
browser it is advised to also pass the image's size.
url
- The URL of the image.imageSize
- The size of the image; may be null
for the
image's inherent size.isPng
- Whether the image is to be treated as a PNG image for the
purpose of the IE PNG hack.Method Detail |
---|
public String getUrl()
public void applyTo(Image image)
applyTo
in class AbstractImagePrototype
public Image createImage()
createImage
in class AbstractImagePrototype
public String getHTML()
getHTML
in class AbstractImagePrototype
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |