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 classImg.ImgBuilderNested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus -
Field Summary
Fields Modifier and Type Field Description private StringaltThe alt attribute of the imgprivate StringcrossOriginThe crossorigin attribute of the imgprivate BooleanisMapThe ismap attribute of the imgprivate StringloadingThe loading attribute of the imgprivate StringlongDescThe longdesc attribute of the imgprivate StringreferrerPolicyThe referrerpolicy attribute of the imgprivate StringsizesThe sizes attribute of the imgprivate StringsrcSetThe srcset attribute of the imgprivate StringuseMapThe usemap attribute of the imgFields inherited from class io.john.amiscaray.stir.domain.elements.AbstractContentFrame
height, src, widthFields inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
cssClasses, customAttributes, hidden, id, styleFields 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.ImgBuilderbuilder()voidsetAlt(String alt)voidsetCrossOrigin(String crossOrigin)voidsetLoading(String loading)voidsetLongDesc(String longDesc)voidsetMap(Boolean map)voidsetReferrerPolicy(String referrerPolicy)voidsetSizes(String sizes)voidsetSrcSet(String srcSet)voidsetUseMap(String useMap)Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractContentFrame
getHeight, getSrc, getWidth, setHeight, setSrc, setWidthMethods inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
addClass, getCssClasses, getCustomAttributes, getId, getStyle, isHidden, setCssClasses, setCustomAttributes, setHidden, setId, setStyleMethods 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
-