Class Img
java.lang.Object
io.john.amiscaray.stir.domain.elements.CacheableElement
io.john.amiscaray.stir.domain.elements.AbstractUIElement
io.john.amiscaray.stir.domain.elements.AbstractContentFrame
io.john.amiscaray.stir.domain.elements.Img
public class Img extends AbstractContentFrame
A pojo representing an img element
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Img.ImgBuilder
Nested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus
-
Field Summary
Fields Modifier and Type Field Description private String
alt
The alt attribute of the imgprivate String
crossOrigin
The crossorigin attribute of the imgprivate Boolean
isMap
The ismap attribute of the imgprivate String
loading
The loading attribute of the imgprivate String
longDesc
The longdesc attribute of the imgprivate String
referrerPolicy
The referrerpolicy attribute of the imgprivate String
sizes
The sizes attribute of the imgprivate String
srcSet
The srcset attribute of the imgprivate String
useMap
The usemap attribute of the imgFields inherited from class io.john.amiscaray.stir.domain.elements.AbstractContentFrame
height, src, width
Fields inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
cssClasses, customAttributes, hidden, id, style
Fields inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
cacheDisabled, cacheStatus, propertyChangeSupport
-
Constructor Summary
Constructors Constructor Description Img(String alt, String src)
Img(String id, List<String> cssClasses, String style, String alt, String crossOrigin, Integer height, Boolean isMap, String loading, String longDesc, String referrerPolicy, String sizes, String src, String srcSet, String useMap, Integer width, boolean hidden, Map<String,String> customAttributes)
-
Method Summary
Modifier and Type Method Description static Img.ImgBuilder
builder()
void
setAlt(String alt)
void
setCrossOrigin(String crossOrigin)
void
setLoading(String loading)
void
setLongDesc(String longDesc)
void
setMap(Boolean map)
void
setReferrerPolicy(String referrerPolicy)
void
setSizes(String sizes)
void
setSrcSet(String srcSet)
void
setUseMap(String useMap)
Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractContentFrame
getHeight, getSrc, getWidth, setHeight, setSrc, setWidth
Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
addClass, getCssClasses, getCustomAttributes, getId, getStyle, isHidden, setCssClasses, setCustomAttributes, setHidden, setId, setStyle
Methods inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
addPropertyChangeListener, emptyCache, getCacheContents, getCacheStatus, isCacheDisabled, isHasChildren, setCacheContents, setCacheDisabled, setHasChildren
-
Field Details
-
alt
The alt attribute of the img -
crossOrigin
The crossorigin attribute of the img -
isMap
The ismap attribute of the img -
loading
The loading attribute of the img -
longDesc
The longdesc attribute of the img -
referrerPolicy
The referrerpolicy attribute of the img -
sizes
The sizes attribute of the img -
srcSet
The srcset attribute of the img -
useMap
The usemap attribute of the img
-
-
Constructor Details
-
Img
public Img(String id, List<String> cssClasses, String style, String alt, String crossOrigin, Integer height, Boolean isMap, String loading, String longDesc, String referrerPolicy, String sizes, String src, String srcSet, String useMap, Integer width, boolean hidden, Map<String,String> customAttributes) -
Img
-
-
Method Details
-
builder
-
setAlt
-
setCrossOrigin
-
setMap
-
setLoading
-
setLongDesc
-
setReferrerPolicy
-
setSizes
-
setSrcSet
-
setUseMap
-