Package com.jalios.jcms.taglib
Class IconTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.jalios.jcms.taglib.IconTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
DataIconTag
public class IconTag extends javax.servlet.jsp.tagext.TagSupport
Display the img html tag for given Data. Warning, if you specify one of the following attributes (css,title,alt), the override of Data.getDataIconHtml() will not be called. The tag will directly call HtmlUtil.getHtmlIcon(...).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IconTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clean()
int
doEndTag()
int
doStartTag()
void
setAlt(java.lang.String alt)
void
setCss(java.lang.String css)
void
setHtmlAttributes(java.lang.String htmlAttributes)
void
setSrc(java.lang.String src)
void
setTitle(java.lang.String title)
-
-
-
Field Detail
-
channel
protected Channel channel
-
htmlAttributes
protected java.lang.String htmlAttributes
-
css
protected java.lang.String css
-
title
protected java.lang.String title
-
alt
protected java.lang.String alt
-
src
protected java.lang.String src
-
-
Method Detail
-
setHtmlAttributes
public void setHtmlAttributes(java.lang.String htmlAttributes)
-
setCss
public void setCss(java.lang.String css)
-
setTitle
public void setTitle(java.lang.String title)
-
setAlt
public void setAlt(java.lang.String alt)
-
setSrc
public void setSrc(java.lang.String src)
-
clean
protected void clean()
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
-
-