|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.ImgProperties
public class ImgProperties
A set of properties that can be used to create an image.
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
ImgProperties()
|
|
ImgProperties(JavaScriptObject jsObj)
|
|
ImgProperties(String src,
int width,
int height)
|
Method Summary | |
---|---|
String |
getExtraStuff()
Specifies the additional attributes to write in the tag. |
Integer |
getHeight()
Specifies the height of the image. |
String |
getImgDir()
Specifies the image-specific image directory to override the default. |
String |
getName()
Specifies the name of the image. |
static ImgProperties |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getSrc()
Specifies the URL of the image local to the skin or application directory. |
Integer |
getWidth()
Specifies the width of the image. |
void |
setExtraStuff(String extraStuff)
Specifies the additional attributes to write in the tag. |
void |
setHeight(Integer height)
Specifies the height of the image. |
void |
setImgDir(String imgDir)
Specifies the image-specific image directory to override the default. |
void |
setName(String name)
Specifies the name of the image. |
void |
setSrc(String src)
Specifies the URL of the image local to the skin or application directory. |
void |
setWidth(Integer width)
Specifies the width of the image. |
Methods inherited from class com.smartgwt.client.core.JsObject |
---|
isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImgProperties()
public ImgProperties(JavaScriptObject jsObj)
public ImgProperties(String src, int width, int height)
Method Detail |
---|
public static ImgProperties getOrCreateRef(JavaScriptObject jsObj)
public void setSrc(String src)
src
- src Default value is nullpublic String getSrc()
public void setWidth(Integer width)
width
- width Default value is nullpublic Integer getWidth()
public void setHeight(Integer height)
height
- height Default value is nullpublic Integer getHeight()
public void setName(String name)
com.smartgwt.client.widgets.Canvas#getImage
and Canvas.setImage(java.lang.String, java.lang.String)
with this name will act on the image object created using this ImgProperties object.
name
- name Default value is nullpublic String getName()
com.smartgwt.client.widgets.Canvas#getImage
and Canvas.setImage(java.lang.String, java.lang.String)
with this name will act on the image object created using this ImgProperties object.
public void setExtraStuff(String extraStuff)
extraStuff
- extraStuff Default value is nullpublic String getExtraStuff()
public void setImgDir(String imgDir)
imgDir
- imgDir Default value is nullpublic String getImgDir()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |