Package com.jalios.jcms.taglib.card
Class CardImageTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.jalios.jcms.taglib.IncludeTag
-
- com.jalios.jcms.taglib.card.CardImageTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CardImageTag extends IncludeTag
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
static int
THUMBNAIL_DEFAUT_HEIGHT
static int
THUMBNAIL_DEFAUT_WIDTH
-
Fields inherited from class com.jalios.jcms.taglib.IncludeTag
INCLUDE_BODY, INCLUDE_CONTEXT, JCMS_RESOURCE_INCLUDE_PREFIX_PROP
-
-
Constructor Summary
Constructors Constructor Description CardImageTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
int
doAfterBody()
int
doStartTag()
boolean
isSquareImage()
boolean
isUseThumbnail()
void
setAlt(java.lang.String alt)
void
setContext(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String body)
void
setCss(java.lang.String css)
void
setDataAttribute(DataAttribute dataAttribute)
void
setSquareImage(boolean squareImage)
void
setSrc(java.lang.String imageSrc)
void
setThumbnailHeight(int thumbnailHeight)
void
setThumbnailWidth(int thumbnailWidth)
void
setUseThumbnail(boolean useThumbnail)
-
Methods inherited from class com.jalios.jcms.taglib.IncludeTag
doBeforeBody, doEndTag, doInitBody, getClazz, getFile, getId, getIncludeObject, getIncludeString, getJsp, getPub, getResource, getTarget, getTargetContext, getUsage, include, include, notRecusiveInclude, printErrorMessage, setClazz, setFile, setId, setIncludeString, setJsp, setPub, setResource, setTarget, setTargetContext, setUsage, skipInclude
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
THUMBNAIL_DEFAUT_WIDTH
public static final int THUMBNAIL_DEFAUT_WIDTH
- See Also:
- Constant Field Values
-
THUMBNAIL_DEFAUT_HEIGHT
public static final int THUMBNAIL_DEFAUT_HEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classIncludeTag
- Throws:
javax.servlet.jsp.JspException
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException
- Specified by:
doAfterBody
in interfacejavax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in classIncludeTag
- Throws:
javax.servlet.jsp.JspException
-
setContext
public void setContext(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String body)
- Overrides:
setContext
in classIncludeTag
-
clean
public void clean()
- Overrides:
clean
in classIncludeTag
-
setSrc
public void setSrc(java.lang.String imageSrc)
-
setAlt
public void setAlt(java.lang.String alt)
-
setCss
public void setCss(java.lang.String css)
-
setDataAttribute
public void setDataAttribute(DataAttribute dataAttribute)
-
setThumbnailWidth
public void setThumbnailWidth(int thumbnailWidth)
-
setThumbnailHeight
public void setThumbnailHeight(int thumbnailHeight)
-
isSquareImage
public boolean isSquareImage()
-
setSquareImage
public void setSquareImage(boolean squareImage)
-
isUseThumbnail
public boolean isUseThumbnail()
-
setUseThumbnail
public void setUseThumbnail(boolean useThumbnail)
-
-