com.smartgwt.client.widgets
Class ImgProperties

java.lang.Object
  extended by com.smartgwt.client.core.JsObject
      extended by com.smartgwt.client.core.DataClass
          extended by com.smartgwt.client.widgets.ImgProperties

public class ImgProperties
extends DataClass

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.DataClass
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, 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
 
Methods inherited from class com.smartgwt.client.core.JsObject
equals, getJsObj, hashCode, isCreated, setJavaScriptObject, setJsObj
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImgProperties

public ImgProperties()

ImgProperties

public ImgProperties(JavaScriptObject jsObj)

ImgProperties

public ImgProperties(String src,
                     int width,
                     int height)
Method Detail

getOrCreateRef

public static ImgProperties getOrCreateRef(JavaScriptObject jsObj)

setExtraStuff

public void setExtraStuff(String extraStuff)
Specifies the additional attributes to write in the tag.

Parameters:
extraStuff - Default value is null

getExtraStuff

public String getExtraStuff()
Specifies the additional attributes to write in the tag.

Returns:
String

setHeight

public void setHeight(Integer height)
Specifies the height of the image.

Parameters:
height - Default value is null

getHeight

public Integer getHeight()
Specifies the height of the image.

Returns:
Integer

setImgDir

public void setImgDir(String imgDir)
Specifies the image-specific image directory to override the default.

Parameters:
imgDir - Default value is null

getImgDir

public String getImgDir()
Specifies the image-specific image directory to override the default.

Returns:
String

setName

public void setName(String name)
Specifies the name of the image. This is an identifier unique to the canvas, and subsequent calls to Canvas.getImage and Canvas.setImage with this name will act on the image object created using this ImgProperties object.

Parameters:
name - Default value is null

getName

public String getName()
Specifies the name of the image. This is an identifier unique to the canvas, and subsequent calls to Canvas.getImage and Canvas.setImage with this name will act on the image object created using this ImgProperties object.

Returns:
String

setSrc

public void setSrc(String src)
Specifies the URL of the image local to the skin or application directory.

Parameters:
src - Default value is null

getSrc

public String getSrc()
Specifies the URL of the image local to the skin or application directory.

Returns:
String

setWidth

public void setWidth(Integer width)
Specifies the width of the image.

Parameters:
width - Default value is null

getWidth

public Integer getWidth()
Specifies the width of the image.

Returns:
Integer