Package com.composum.sling.cpnl
Class ImageTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.composum.sling.cpnl.CpnlBodyTagSupport
-
- com.composum.sling.cpnl.TagBase
-
- com.composum.sling.cpnl.UrlTag
-
- com.composum.sling.cpnl.ImageTag
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.DynamicAttributes
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class ImageTag extends UrlTag
a tag to build image elements with mapped source URLs- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
alt
protected String
title
-
Fields inherited from class com.composum.sling.cpnl.TagBase
classes, dynamicAttributes, TAG_NONE, tagName, test
-
Fields inherited from class com.composum.sling.cpnl.CpnlBodyTagSupport
context, out, request, resource, resourceResolver
-
-
Constructor Summary
Constructors Constructor Description ImageTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull String
buildUrl(@NotNull String urlValue, @Nullable Boolean map)
protected void
clear()
Reset all member variables to the (default) start values.protected String
getDefaultTagName()
protected String
getDefaultUrlAttr()
void
setAlt(String value)
void
setSrc(String src)
void
setTitle(String value)
protected void
writeAttributes(javax.servlet.jsp.JspWriter writer)
-
Methods inherited from class com.composum.sling.cpnl.UrlTag
getFormatter, getUrlAttr, setFormat, setMap, setRole, setUrl, setUrlAttr
-
Methods inherited from class com.composum.sling.cpnl.TagBase
acceptDynamicAttribute, doEndTag, doStartTag, getClasses, getTagName, getTestResult, renderTag, renderTagEnd, renderTagStart, setClasses, setDynamicAttribute, setTagName, setTest
-
Methods inherited from class com.composum.sling.cpnl.CpnlBodyTagSupport
createContext, eval, getExpressionUtil, release, setPageContext
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
-
-
-
Method Detail
-
clear
protected void clear()
Description copied from class:CpnlBodyTagSupport
Reset all member variables to the (default) start values. Called prior processing the tag and at release time.
-
getDefaultTagName
protected String getDefaultTagName()
- Specified by:
getDefaultTagName
in classTagBase
-
getDefaultUrlAttr
protected String getDefaultUrlAttr()
- Specified by:
getDefaultUrlAttr
in classUrlTag
-
setSrc
public void setSrc(String src)
-
setTitle
public void setTitle(String value)
-
setAlt
public void setAlt(String value)
-
buildUrl
@NotNull protected @NotNull String buildUrl(@NotNull @NotNull String urlValue, @Nullable @Nullable Boolean map)
-
writeAttributes
protected void writeAttributes(javax.servlet.jsp.JspWriter writer) throws IOException
- Overrides:
writeAttributes
in classUrlTag
- Throws:
IOException
-
-