Class InsertGoogleAPITag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.InsertGoogleAPITag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class InsertGoogleAPITag extends jakarta.servlet.jsp.tagext.TagSupport
A JSP Tag to insert a JavaScript link to the Google Maps API.
Since:
1.0
Version:
12.0
Author:
Luke
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final String
     

    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
    Renders the JSP tag.
    void
     
    void
    Sets the JavaScript callback function to be called when the Google Maps API has completed loading.
    void
    Sets the Google Maps release cycle to use.
    void
    setJs(String jsList)
    Sets the Javascript libraries to load after the API is loaded.
    void
    Sets the Google Maps v3 libraries to load.
    void
    Sets the Google API revision to pull down.
    void
    setPageContext(jakarta.servlet.jsp.PageContext ctx)
     
    void
    setVersion(int ver)
    Sets the Google API version to pull down.

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

    doAfterBody, doStartTag, 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

    • InsertGoogleAPITag

      public InsertGoogleAPITag()
  • Method Details

    • setVersion

      public void setVersion(int ver)
      Sets the Google API version to pull down.
      Parameters:
      ver - the API major version
    • setMinor

      public void setMinor(String ver)
      Sets the Google API revision to pull down.
      Parameters:
      ver - the API minor version.
    • setCycle

      public void setCycle(String c)
      Sets the Google Maps release cycle to use.
      Parameters:
      c - the cycle name
    • setLibraries

      public void setLibraries(String libList)
      Sets the Google Maps v3 libraries to load.
      Parameters:
      libList - a comma-separated list of libraries
    • setJs

      public void setJs(String jsList)
      Sets the Javascript libraries to load after the API is loaded.
      Parameters:
      jsList - a comma-separated list of libraries
    • setCallback

      public void setCallback(String cb)
      Sets the JavaScript callback function to be called when the Google Maps API has completed loading.
      Parameters:
      cb - the callback function name
    • setPageContext

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

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

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Renders the JSP tag.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      jakarta.servlet.jsp.JspException - if no Google Maps API key defined