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
ConstructorDescriptionImgProperties
(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 ImgProperties
getOrCreateRef
(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:
setEventStuff
in classImgHTMLProperties
- Parameters:
eventStuff
- New eventStuff value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls- See Also:
-
getEventStuff
Specifies the additional event-related attributes to write in the tag.- Overrides:
getEventStuff
in 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 toeventStuff
instead to guarantee proper behavior when using SVG via regular .svg image files.- Overrides:
setExtraStuff
in classImgHTMLProperties
- Parameters:
extraStuff
- New extraStuff value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls
-
getExtraStuff
Specifies the additional attributes to write in the tag. Event-related attributes should be added toeventStuff
instead to guarantee proper behavior when using SVG via regular .svg image files.- Overrides:
getExtraStuff
in classImgHTMLProperties
- Returns:
- Current extraStuff value. Default value is null
-
setHeight
Specifies the height of the image.- Overrides:
setHeight
in classImgHTMLProperties
- Parameters:
height
- New height value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls
-
getHeight
Specifies the height of the image.- Overrides:
getHeight
in classImgHTMLProperties
- Returns:
- Current height value. Default value is null
-
setImgDir
Specifies the image-specific image directory to override the default.- Overrides:
setImgDir
in classImgHTMLProperties
- Parameters:
imgDir
- New imgDir value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls- See Also:
-
getImgDir
Specifies the image-specific image directory to override the default.- Overrides:
getImgDir
in 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 to
andCanvas.getImage()
with this name will act on the image object created using thisCanvas.setImage()
ImgProperties
object.- Overrides:
setName
in classImgHTMLProperties
- Parameters:
name
- New name value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls
-
getName
Specifies the name of the image. This is an identifier unique to the canvas, and subsequent calls to
andCanvas.getImage()
with this name will act on the image object created using thisCanvas.setImage()
ImgProperties
object.- Overrides:
getName
in classImgHTMLProperties
- Returns:
- Current name value. Default value is null
-
setSrc
Specifies the URL of the image local to the skin or application directory.- Overrides:
setSrc
in classImgHTMLProperties
- Parameters:
src
- New src value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls- See Also:
-
getSrc
Specifies the URL of the image local to the skin or application directory.- Overrides:
getSrc
in classImgHTMLProperties
- Returns:
- Current src value. Default value is null
- See Also:
-
setWidth
Specifies the width of the image.- Overrides:
setWidth
in classImgHTMLProperties
- Parameters:
width
- New width value. Default value is null- Returns:
ImgProperties
instance, for chaining setter calls
-
getWidth
Specifies the width of the image.- Overrides:
getWidth
in classImgHTMLProperties
- Returns:
- Current width value. Default value is null
-