Class InsertCSSTag

All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class InsertCSSTag extends InsertMinifiedContentTag
A JSP tag to insert a Cascading Style Sheet.
Since:
1.0
Version:
12.3
Author:
Luke
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final String
    Default CSS scheme name.

    Fields inherited from class InsertContentTag

    _resourceName
    Modifier and Type
    Field
    Description
    protected String
    The name of the resource to display, without extension.

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    protected String
    Gets the scheme in use, or DEFAULT_SCHEME if none specified
    void
     
    void
    setHost(String hostName)
    Specifies that the Style Sheet is located on a different web server.
    void
    setNoScheme(boolean noScheme)
    Sets whether to ignore any CSS schemes when generating the file name.
    final void
    setPageContext(jakarta.servlet.jsp.PageContext ctxt)
     
    void
    Sets the CSS scheme to display.

    Methods inherited from class InsertMinifiedContentTag

    doStartTag, getFileName, isMinified, setMinify
    Modifier and Type
    Method
    Description
    int
     
    protected String
    Returns the actual file name of the requested resource.
    protected boolean
    Returns whether this resource is minified.
    void
    setMinify(boolean override)
    Manually overrides the minification state of this resource.

    Methods inherited from class InsertContentTag

    setName
    Modifier and Type
    Method
    Description
    void
    Update the name of the resource to insert.

    Methods inherited from class BrowserInfoTag

    getBrowserContext, passedCAPTCHA
    Modifier and Type
    Method
    Description
    protected HTTPContextData
    Fetches the browser data.
    protected boolean
    Returns whether the user has passed CAPTCHA validation.

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • InsertCSSTag

      public InsertCSSTag()
  • Method Details

    • setHost

      public void setHost(String hostName)
      Specifies that the Style Sheet is located on a different web server.
      Parameters:
      hostName - the host name
    • setScheme

      public void setScheme(String name)
      Sets the CSS scheme to display.
      Parameters:
      name - the scheme name
      See Also:
    • setNoScheme

      public void setNoScheme(boolean noScheme)
      Sets whether to ignore any CSS schemes when generating the file name.
      Parameters:
      noScheme - TRUE to ignore schemes, otherwise FALSE
    • getScheme

      protected String getScheme()
      Gets the scheme in use, or DEFAULT_SCHEME if none specified
      Returns:
      the scheme name
      See Also:
    • setPageContext

      public final void setPageContext(jakarta.servlet.jsp.PageContext ctxt)
      Specified by:
      setPageContext in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      setPageContext in class jakarta.servlet.jsp.tagext.TagSupport
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException
    • release

      public void release()
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class InsertMinifiedContentTag