Package com.smartgwt.client.widgets
Class ImgHTMLProperties
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.ImgHTMLProperties
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
ImgProperties
A set of properties that define settings for use in image HTML.
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.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
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 ImgHTMLProperties
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
-
ImgHTMLProperties
public ImgHTMLProperties() -
ImgHTMLProperties
-
ImgHTMLProperties
-
-
Method Details
-
getOrCreateRef
-
setEventStuff
Specifies the additional event-related attributes to write in the tag.- Parameters:
eventStuff
- New eventStuff value. Default value is null- Returns:
ImgHTMLProperties
instance, for chaining setter calls- See Also:
-
getEventStuff
Specifies the additional event-related attributes to write in the tag.- 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.- Parameters:
extraStuff
- New extraStuff value. Default value is null- Returns:
ImgHTMLProperties
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.- Returns:
- Current extraStuff value. Default value is null
-
setHeight
Specifies the height of the image.- Parameters:
height
- New height value. Default value is null- Returns:
ImgHTMLProperties
instance, for chaining setter calls
-
getHeight
Specifies the height of the image.- Returns:
- Current height value. Default value is null
-
setImgDir
Specifies the image-specific image directory to override the default.- Parameters:
imgDir
- New imgDir value. Default value is null- Returns:
ImgHTMLProperties
instance, for chaining setter calls- See Also:
-
getImgDir
Specifies the image-specific image directory to override the default.- 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()
ImgHTMLProperties
object.- Parameters:
name
- New name value. Default value is null- Returns:
ImgHTMLProperties
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()
ImgHTMLProperties
object.- Returns:
- Current name value. Default value is null
-
setSrc
Specifies the URL of the image local to the skin or application directory.- Parameters:
src
- New src value. Default value is null- Returns:
ImgHTMLProperties
instance, for chaining setter calls- See Also:
-
getSrc
Specifies the URL of the image local to the skin or application directory.- Returns:
- Current src value. Default value is null
- See Also:
-
setWidth
Specifies the width of the image.- Parameters:
width
- New width value. Default value is null- Returns:
ImgHTMLProperties
instance, for chaining setter calls
-
getWidth
Specifies the width of the image.- Returns:
- Current width value. Default value is null
-