Class TextTag

  • All Implemented Interfaces:
    Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class TextTag
    extends TagBase
    See Also:
    Serialized Form
    • Constructor Detail

      • TextTag

        public TextTag()
    • Method Detail

      • clear

        protected void clear()
        Description copied from class: CpnlBodyTagSupport
        Reset all member variables to the (default) start values. Called prior processing the tag and at release time.
        Overrides:
        clear in class TagBase
      • doStartTag

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

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

        protected void renderTagEnd()
        is rendering the text and a tag around if 'tagName' is set or CSS classes are specified
        Overrides:
        renderTagEnd in class TagBase
      • toString

        public static String toString​(Object value)
      • escape

        protected Object escape​(Object value)
        the extension hook for the various types of encoding; must work with Object values to ensure that non String values can be used as is
        Parameters:
        value - the value (String) to encode
        Returns:
        the encoded String or an appropriate Object
      • setType

        public void setType​(String type)
        Parameters:
        type - the type of the value and the escape strategy key
      • setValue

        public void setValue​(Object value)
        Parameters:
        value - the value to set
      • setProperty

        public void setProperty​(String propertyName)
        Parameters:
        propertyName - the propertyName to set
      • setEscape

        public void setEscape​(boolean escape)
        Parameters:
        escape - flag for escaping the text (default: 'true')
      • setI18n

        public void setI18n​(boolean i18n)
        Parameters:
        i18n - flag for translating the text (default: 'false')
      • setFormat

        public void setFormat​(String format)
        Parameters:
        format - the fmt to set
      • getFormatter

        public Format getFormatter​(Object value)
      • setLocale

        public void setLocale​(Locale locale)
      • getLocale

        public Locale getLocale()
      • setTagClass

        public void setTagClass​(String tagClass)
        Parameters:
        tagClass - the tagClass to set