Class LinkTag

  • 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

    public class LinkTag
    extends UrlTag
    Output an href link using the given parameters.
    Since:
    jcms-5.7.0
    Version:
    $Revision: 130226 $
    Author:
    Olivier Jaquemet
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
      • 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
      LinkTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doAfterBody()  
      int doEndTag()  
      int doStartTag()  
      void printDataName​(java.io.Writer out, java.util.Locale locale)
      Print the data name on the given writer.
      void printLinkEnd​(javax.servlet.jsp.JspWriter out)
      Print closing tag </a>.
      void printLinkStart​(javax.servlet.http.HttpServletRequest request, java.io.Writer out, java.util.Locale locale)
      Print opening tag <a...
      void setAccessibilityInfo​(java.lang.String accessibilityInfo)  
      void setCss​(java.lang.String css)  
      void setDataAttribute​(DataAttribute dataAttribute)  
      void setHtmlAttributes​(java.lang.String htmlAttributes)  
      void setTitle​(java.lang.String text)  
      • 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, 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
    • Constructor Detail

      • LinkTag

        public LinkTag()
    • Method Detail

      • setTitle

        public void setTitle​(java.lang.String text)
      • setCss

        public void setCss​(java.lang.String css)
      • setHtmlAttributes

        public void setHtmlAttributes​(java.lang.String htmlAttributes)
      • setAccessibilityInfo

        public void setAccessibilityInfo​(java.lang.String accessibilityInfo)
      • setDataAttribute

        public void setDataAttribute​(DataAttribute dataAttribute)
      • printLinkStart

        public void printLinkStart​(javax.servlet.http.HttpServletRequest request,
                                   java.io.Writer out,
                                   java.util.Locale locale)
                            throws java.lang.Exception
        Print opening tag <a... href attribute with URL and other attributes.
        Parameters:
        request - the current HttpServletRequest
        out - the current JspWriter
        locale - the user Locale
        Throws:
        java.lang.Exception
        Since:
        jcms-5.7.0
      • printDataName

        public void printDataName​(java.io.Writer out,
                                  java.util.Locale locale)
                           throws java.lang.Exception
        Print the data name on the given writer.
        Parameters:
        out - the current JspWriter
        locale - the user Locale
        Throws:
        java.lang.Exception
        Since:
        jcms-5.7.0
      • printLinkEnd

        public void printLinkEnd​(javax.servlet.jsp.JspWriter out)
                          throws java.lang.Exception
        Print closing tag </a>.
        Parameters:
        out - the current JspWriter
        Throws:
        java.lang.Exception
        Since:
        jcms-5.7.0
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class UrlTag
        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 UrlTag
        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 UrlTag
        Throws:
        javax.servlet.jsp.JspException