public class ImgHTMLProperties extends DataClass
At minimum, an ImgHTMLProperties
object
should include a src and, in most cases, width and height properties in order to render in a
controlled manner.
factoryCreated, factoryProperties
Constructor and Description |
---|
ImgHTMLProperties() |
ImgHTMLProperties(com.google.gwt.core.client.JavaScriptObject jsObj) |
ImgHTMLProperties(java.lang.String src,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventStuff()
Specifies the additional event-related attributes to write in the tag.
|
java.lang.String |
getExtraStuff()
Specifies the additional attributes to write in the tag.
|
java.lang.Integer |
getHeight()
Specifies the height of the image.
|
java.lang.String |
getImgDir()
Specifies the image-specific image directory to override the default.
|
java.lang.String |
getName()
Specifies the name of the image.
|
static ImgHTMLProperties |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getSrc()
Specifies the URL of the image local to the skin or application directory.
|
java.lang.Integer |
getWidth()
Specifies the width of the image.
|
ImgHTMLProperties |
setEventStuff(java.lang.String eventStuff)
Specifies the additional event-related attributes to write in the tag.
|
ImgHTMLProperties |
setExtraStuff(java.lang.String extraStuff)
Specifies the additional attributes to write in the tag.
|
ImgHTMLProperties |
setHeight(java.lang.Integer height)
Specifies the height of the image.
|
ImgHTMLProperties |
setImgDir(java.lang.String imgDir)
Specifies the image-specific image directory to override the default.
|
ImgHTMLProperties |
setName(java.lang.String name)
Specifies the name of the image.
|
ImgHTMLProperties |
setSrc(java.lang.String src)
Specifies the URL of the image local to the skin or application directory.
|
ImgHTMLProperties |
setWidth(java.lang.Integer width)
Specifies the width of the image.
|
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public ImgHTMLProperties()
public ImgHTMLProperties(com.google.gwt.core.client.JavaScriptObject jsObj)
public ImgHTMLProperties(java.lang.String src, int width, int height)
public static ImgHTMLProperties getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public ImgHTMLProperties setEventStuff(java.lang.String eventStuff)
eventStuff
- New eventStuff value. Default value is nullImgHTMLProperties
instance, for chaining setter callssetExtraStuff(java.lang.String)
public java.lang.String getEventStuff()
getExtraStuff()
public ImgHTMLProperties setExtraStuff(java.lang.String extraStuff)
eventStuff
instead to guarantee proper behavior when using
SVG via regular .svg image files.extraStuff
- New extraStuff value. Default value is nullImgHTMLProperties
instance, for chaining setter callspublic java.lang.String getExtraStuff()
eventStuff
instead to guarantee proper behavior when using
SVG via regular .svg image files.public ImgHTMLProperties setHeight(java.lang.Integer height)
height
- New height value. Default value is nullImgHTMLProperties
instance, for chaining setter callspublic java.lang.Integer getHeight()
public ImgHTMLProperties setImgDir(java.lang.String imgDir)
imgDir
- New imgDir value. Default value is nullImgHTMLProperties
instance, for chaining setter callsURL
public java.lang.String getImgDir()
URL
public ImgHTMLProperties setName(java.lang.String name)
Canvas.getImage()
and Canvas.setImage()
with this name will act on the image object
created using this ImgHTMLProperties
object.name
- New name value. Default value is nullImgHTMLProperties
instance, for chaining setter callspublic java.lang.String getName()
Canvas.getImage()
and Canvas.setImage()
with this name will act on the image object
created using this ImgHTMLProperties
object.public ImgHTMLProperties setSrc(java.lang.String src)
src
- New src value. Default value is nullImgHTMLProperties
instance, for chaining setter callsURL
public java.lang.String getSrc()
URL
public ImgHTMLProperties setWidth(java.lang.Integer width)
width
- New width value. Default value is nullImgHTMLProperties
instance, for chaining setter callspublic java.lang.Integer getWidth()