Package com.jalios.jcms.taglib.button
Class ButtonTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.jalios.jcms.taglib.button.ButtonTag
-
- 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
- Direct Known Subclasses:
ButtonAjaxTag,ButtonModalTag
public class ButtonTag extends javax.servlet.jsp.tagext.BodyTagSupport- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Buttonbuttonprotected Button.ButtonTypebuttonTypeprotected booleanconfirmprotected java.lang.StringconfirmTextprotected java.lang.Stringcssprotected DataAttributedataAttributeprotected java.lang.StringhtmlAttributesprotected java.lang.Stringiconprotected java.lang.StringiconSuffixprotected java.lang.Stringlabelprotected java.lang.Stringnameprotected java.lang.Stringtitleprotected java.lang.Stringurlprotected java.lang.Stringvalue
-
Constructor Summary
Constructors Constructor Description ButtonTag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclean()intdoAfterBody()intdoEndTag()intdoStartTag()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)voidsetAddUrlAsHref(boolean addUrlAsHref)voidsetButton(Button button)voidsetButtonType(Button.ButtonType buttonType)voidsetConfirm(boolean confirm)voidsetConfirmText(java.lang.String confirmText)voidsetCss(java.lang.String css)voidsetDataAttribute(DataAttribute dataAttribute)voidsetHtmlAttributes(java.lang.String htmlAttributes)voidsetIcon(java.lang.String icon)voidsetIconSuffix(java.lang.String iconSuffix)voidsetLabel(java.lang.String label)voidsetName(java.lang.String name)voidsetTitle(java.lang.String title)voidsetUrl(java.lang.String url)voidsetValue(java.lang.String value)-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
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
-
label
protected java.lang.String label
-
css
protected java.lang.String css
-
icon
protected java.lang.String icon
-
iconSuffix
protected java.lang.String iconSuffix
-
buttonType
protected Button.ButtonType buttonType
-
dataAttribute
protected DataAttribute dataAttribute
-
htmlAttributes
protected java.lang.String htmlAttributes
-
confirm
protected boolean confirm
-
confirmText
protected java.lang.String confirmText
-
url
protected java.lang.String url
-
button
protected Button button
-
title
protected java.lang.String title
-
name
protected java.lang.String name
-
value
protected java.lang.String value
-
-
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
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException- Specified by:
doAfterBodyin interfacejavax.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin 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
-
setLabel
public void setLabel(java.lang.String label)
-
setCss
public void setCss(java.lang.String css)
-
setIcon
public void setIcon(java.lang.String icon)
-
setIconSuffix
public void setIconSuffix(java.lang.String iconSuffix)
-
setButtonType
public void setButtonType(Button.ButtonType buttonType)
-
setDataAttribute
public void setDataAttribute(DataAttribute dataAttribute)
-
setHtmlAttributes
public void setHtmlAttributes(java.lang.String htmlAttributes)
-
setConfirm
public void setConfirm(boolean confirm)
-
setTitle
public void setTitle(java.lang.String title)
-
setConfirmText
public void setConfirmText(java.lang.String confirmText)
-
setUrl
public void setUrl(java.lang.String url)
-
setButton
public void setButton(Button button)
-
setAddUrlAsHref
public void setAddUrlAsHref(boolean addUrlAsHref)
-
setName
public void setName(java.lang.String name)
-
setValue
public void setValue(java.lang.String value)
-
-