Package com.smartgwt.client.widgets
Class ImgProperties
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.ImgHTMLProperties
com.smartgwt.client.widgets.ImgProperties
- All Implemented Interfaces:
HasHandlers
A set of properties that can be used to create an image.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
ConstructorsConstructorDescriptionImgProperties(JavaScriptObject jsObj) ImgProperties(String src, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the additional event-related attributes to write in the tag.Specifies the additional attributes to write in the tag.Specifies the height of the image.Specifies the image-specific image directory to override the default.getName()Specifies the name of the image.static ImgPropertiesgetOrCreateRef(JavaScriptObject jsObj) getSrc()Specifies the URL of the image local to the skin or application directory.getWidth()Specifies the width of the image.setEventStuff(String eventStuff) Specifies the additional event-related attributes to write in the tag.setExtraStuff(String extraStuff) Specifies the additional attributes to write in the tag.Specifies the height of the image.Specifies the image-specific image directory to override the default.Specifies the name of the image.Specifies the URL of the image local to the skin or application directory.Specifies the width of the image.Methods inherited from class com.smartgwt.client.core.DataClass
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
-
Constructor Details
-
ImgProperties
public ImgProperties() -
ImgProperties
-
ImgProperties
-
-
Method Details
-
getOrCreateRef
-
setEventStuff
Specifies the additional event-related attributes to write in the tag.- Overrides:
setEventStuffin classImgHTMLProperties- Parameters:
eventStuff- New eventStuff value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls- See Also:
-
getEventStuff
Specifies the additional event-related attributes to write in the tag.- Overrides:
getEventStuffin classImgHTMLProperties- Returns:
- Current eventStuff value. Default value is null
- See Also:
-
setExtraStuff
Specifies the additional attributes to write in the tag. Event-related attributes should be added toeventStuffinstead to guarantee proper behavior when using SVG via regular .svg image files.- Overrides:
setExtraStuffin classImgHTMLProperties- Parameters:
extraStuff- New extraStuff value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls
-
getExtraStuff
Specifies the additional attributes to write in the tag. Event-related attributes should be added toeventStuffinstead to guarantee proper behavior when using SVG via regular .svg image files.- Overrides:
getExtraStuffin classImgHTMLProperties- Returns:
- Current extraStuff value. Default value is null
-
setHeight
Specifies the height of the image.- Overrides:
setHeightin classImgHTMLProperties- Parameters:
height- New height value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls
-
getHeight
Specifies the height of the image.- Overrides:
getHeightin classImgHTMLProperties- Returns:
- Current height value. Default value is null
-
setImgDir
Specifies the image-specific image directory to override the default.- Overrides:
setImgDirin classImgHTMLProperties- Parameters:
imgDir- New imgDir value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls- See Also:
-
getImgDir
Specifies the image-specific image directory to override the default.- Overrides:
getImgDirin classImgHTMLProperties- Returns:
- Current imgDir value. Default value is null
- See Also:
-
setName
Specifies the name of the image. This is an identifier unique to the canvas, and subsequent calls toandCanvas.getImage()with this name will act on the image object created using thisCanvas.setImage()ImgPropertiesobject.- Overrides:
setNamein classImgHTMLProperties- Parameters:
name- New name value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls
-
getName
Specifies the name of the image. This is an identifier unique to the canvas, and subsequent calls toandCanvas.getImage()with this name will act on the image object created using thisCanvas.setImage()ImgPropertiesobject.- Overrides:
getNamein classImgHTMLProperties- Returns:
- Current name value. Default value is null
-
setSrc
Specifies the URL of the image local to the skin or application directory.- Overrides:
setSrcin classImgHTMLProperties- Parameters:
src- New src value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls- See Also:
-
getSrc
Specifies the URL of the image local to the skin or application directory.- Overrides:
getSrcin classImgHTMLProperties- Returns:
- Current src value. Default value is null
- See Also:
-
setWidth
Specifies the width of the image.- Overrides:
setWidthin classImgHTMLProperties- Parameters:
width- New width value. Default value is null- Returns:
ImgPropertiesinstance, for chaining setter calls
-
getWidth
Specifies the width of the image.- Overrides:
getWidthin classImgHTMLProperties- Returns:
- Current width value. Default value is null
-