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 Button
button
protected Button.ButtonType
buttonType
protected boolean
confirm
protected java.lang.String
confirmText
protected java.lang.String
css
protected DataAttribute
dataAttribute
protected java.lang.String
htmlAttributes
protected java.lang.String
icon
protected java.lang.String
iconSuffix
protected java.lang.String
label
protected java.lang.String
name
protected java.lang.String
title
protected java.lang.String
url
protected java.lang.String
value
-
Constructor Summary
Constructors Constructor Description ButtonTag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clean()
int
doAfterBody()
int
doEndTag()
int
doStartTag()
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
setAddUrlAsHref(boolean addUrlAsHref)
void
setButton(Button button)
void
setButtonType(Button.ButtonType buttonType)
void
setConfirm(boolean confirm)
void
setConfirmText(java.lang.String confirmText)
void
setCss(java.lang.String css)
void
setDataAttribute(DataAttribute dataAttribute)
void
setHtmlAttributes(java.lang.String htmlAttributes)
void
setIcon(java.lang.String icon)
void
setIconSuffix(java.lang.String iconSuffix)
void
setLabel(java.lang.String label)
void
setName(java.lang.String name)
void
setTitle(java.lang.String title)
void
setUrl(java.lang.String url)
void
setValue(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:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- 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 classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in 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)
-
-