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
FieldsFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Renders the JSP tag.voidrelease()voidsetCallback(String cb) Sets the JavaScript callback function to be called when the Google Maps API has completed loading.voidSets the Google Maps release cycle to use.voidSets the Javascript libraries to load after the API is loaded.voidsetLibraries(String libList) Sets the Google Maps v3 libraries to load.voidSets the Google API revision to pull down.voidsetPageContext(jakarta.servlet.jsp.PageContext ctx) voidsetVersion(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
-
Field Details
-
API_VER_ATTR_NAME
- See Also:
-
-
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
Sets the Google API revision to pull down.- Parameters:
ver- the API minor version.
-
setCycle
Sets the Google Maps release cycle to use.- Parameters:
c- the cycle name
-
setLibraries
Sets the Google Maps v3 libraries to load.- Parameters:
libList- a comma-separated list of libraries
-
setJs
Sets the Javascript libraries to load after the API is loaded.- Parameters:
jsList- a comma-separated list of libraries
-
setCallback
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:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classjakarta.servlet.jsp.tagext.TagSupport
-
release
public void release()- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionRenders the JSP tag.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException- if no Google Maps API key defined
-