Class InsertGoogleAPITag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.InsertGoogleAPITag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP Tag to insert a JavaScript link to the Google Maps API.
- Since:
- 1.0
- Version:
- 11.6
- Author:
- Luke
- See Also:
-
Field Summary
FieldsFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
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 -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders the JSP tag.void
release()
void
setCallback
(String cb) 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
Sets the Javascript libraries to load after the API is loaded.void
setLibraries
(String libList) Sets the Google Maps v3 libraries to load.void
Sets the Google API revision to pull down.void
void
setVersion
(int ver) Sets the Google API version to pull down.Methods inherited from class javax.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
- Specified by:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classTagSupport
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Renders the JSP tag.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if no Google Maps API key defined
-