Class 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  
      • Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        bodyContent
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.BodyTag

        EVAL_BODY_BUFFERED, EVAL_BODY_TAG
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.jsp.tagext.Tag

        getParent, setPageContext, setParent
    • 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
      • 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
    • Constructor Detail

      • ButtonTag

        public ButtonTag()
    • Method Detail

      • clean

        protected void clean()
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • doAfterBody

        public int doAfterBody()
                        throws javax.servlet.jsp.JspException
        Specified by:
        doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
        Overrides:
        doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.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 used
        ex - the exception
        pageContext - 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)
      • 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)