public class VoteTag extends javax.servlet.jsp.tagext.BodyTagSupport implements VoteConstants
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ajaxRefreshDiv |
protected java.lang.String |
css |
protected Publication |
pub |
static java.lang.String |
REVISION |
protected java.lang.String |
templateProperty |
protected int |
usage |
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 and Description |
|---|
VoteTag() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clean() |
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getCss() |
Publication |
getPub() |
java.lang.String |
getTemplateProperty() |
int |
getUsage() |
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)
|
void |
setAjaxRefreshDiv(boolean ajaxRefreshDiv) |
void |
setCss(java.lang.String css) |
void |
setPub(Publication pub) |
void |
setTemplateProperty(java.lang.String templateProperty) |
void |
setUsage(int usage) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic static final java.lang.String REVISION
protected Publication pub
protected java.lang.String css
protected java.lang.String templateProperty
protected boolean ajaxRefreshDiv
protected int usage
protected void clean()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic static void printErrorMessage(java.lang.String jsp,
java.lang.Exception ex,
javax.servlet.jsp.PageContext pageContext)
jsp - the JSP usedex - the exceptionpageContext - the given pageContextpublic int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportpublic Publication getPub()
public void setPub(Publication pub)
public java.lang.String getCss()
public void setCss(java.lang.String css)
public java.lang.String getTemplateProperty()
public void setTemplateProperty(java.lang.String templateProperty)
public int getUsage()
public void setUsage(int usage)
public void setAjaxRefreshDiv(boolean ajaxRefreshDiv)
Copyright © 2001-2017 Jalios SA. All Rights Reserved.