Package com.jalios.jcms.taglib
Class VoteTag
- java.lang.Object
 - 
- javax.servlet.jsp.tagext.TagSupport
 - 
- javax.servlet.jsp.tagext.BodyTagSupport
 - 
- com.jalios.jcms.taglib.VoteTag
 
 
 
 
- 
- All Implemented Interfaces:
 VoteConstants,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 VoteTag extends javax.servlet.jsp.tagext.BodyTagSupport implements VoteConstants
Like Tag used to display an html link to perform a like on an element- Since:
 - jcms-8.0.0
 - Version:
 - $Revision: 102341 $
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected booleanajaxRefreshDivprotected java.lang.Stringcssprotected Publicationpubstatic java.lang.StringREVISIONprotected java.lang.StringtemplatePropertyprotected intusage- 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE 
- 
Fields inherited from interface com.jalios.jcms.vote.VoteConstants
ALERT_DOMAIN, ALERT_NAME_NEGATIVE_VOTE, ALERT_NAME_POSITIVE_VOTE, ANONYMIZE_DOWNVOTE_PROP, ANONYMIZE_VOTE_PROP, CACHE_SIZE_PROP, DEFAULT_VOTE_TEMPLATE_PROP, DEFAULT_VOTELIST_TEMPLATE_PROP, ICON_VOTE_NEGATIVE_HL_PROP, ICON_VOTE_NEGATIVE_PROP, ICON_VOTE_POSITIVE_HL_PROP, ICON_VOTE_POSITIVE_PROP, PUBLICATION_ID_FIELD, RATING_FIELD, SEND_VOTE_NOTIFICATION_PROP, UI_VOTE_NEGATIVE, UI_VOTE_NEGATIVE_HL, UI_VOTE_POSITIVE, UI_VOTE_POSITIVE_HL, UNVOTABLE_TYPES_PROP, VOTE_DEFAULT_VALUE_PROP, VOTE_ENABLED_PROP, VOTE_TAG_USAGE_ACTION, VOTE_TAG_USAGE_VOTELIST 
 - 
 
- 
Constructor Summary
Constructors Constructor Description VoteTag() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclean()intdoEndTag()intdoStartTag()java.lang.StringgetCss()PublicationgetPub()java.lang.StringgetTemplateProperty()intgetUsage()static voidprintErrorMessage(java.lang.String jsp, java.lang.Exception ex, javax.servlet.jsp.PageContext pageContext)Print an Exception message in log and in JSP (if developement mode)voidsetAjaxRefreshDiv(boolean ajaxRefreshDiv)voidsetCss(java.lang.String css)voidsetPub(Publication pub)voidsetTemplateProperty(java.lang.String templateProperty)voidsetUsage(int usage)- 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent 
- 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue 
 - 
 
 - 
 
- 
- 
Field Detail
- 
REVISION
public static final java.lang.String REVISION
- See Also:
 - Constant Field Values
 
 
- 
pub
protected Publication pub
 
- 
css
protected java.lang.String css
 
- 
templateProperty
protected java.lang.String templateProperty
 
- 
ajaxRefreshDiv
protected boolean ajaxRefreshDiv
 
- 
usage
protected int usage
 
 - 
 
- 
Method Detail
- 
clean
protected void clean()
 
- 
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException- Specified by:
 doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
 doStartTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
 javax.servlet.jsp.JspException
 
- 
printErrorMessage
public static void printErrorMessage(java.lang.String jsp, java.lang.Exception ex, javax.servlet.jsp.PageContext pageContext)Print an Exception message in log and in JSP (if developement mode)- Parameters:
 jsp- the JSP usedex- the exceptionpageContext- the given pageContext
 
- 
doEndTag
public int doEndTag()
- Specified by:
 doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
 doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport
 
- 
getPub
public Publication getPub()
 
- 
setPub
public void setPub(Publication pub)
 
- 
getCss
public java.lang.String getCss()
 
- 
setCss
public void setCss(java.lang.String css)
 
- 
getTemplateProperty
public java.lang.String getTemplateProperty()
 
- 
setTemplateProperty
public void setTemplateProperty(java.lang.String templateProperty)
 
- 
getUsage
public int getUsage()
 
- 
setUsage
public void setUsage(int usage)
 
- 
setAjaxRefreshDiv
public void setAjaxRefreshDiv(boolean ajaxRefreshDiv)
 
 - 
 
 -