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:
- 12.0
- Author:
- Luke
- See Also:
- 
Field SummaryFieldsFields inherited from class javax.servlet.jsp.tagext.TagSupportid, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTagEVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.TagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.voidvoidsetVersion(int ver) Sets the Google API version to pull down.Methods inherited from class javax.servlet.jsp.tagext.TagSupportdoAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
- 
Field Details- 
API_VER_ATTR_NAME- See Also:
 
 
- 
- 
Constructor Details- 
InsertGoogleAPITagpublic InsertGoogleAPITag()
 
- 
- 
Method Details- 
setVersionpublic void setVersion(int ver) Sets the Google API version to pull down.- Parameters:
- ver- the API major version
 
- 
setMinorSets the Google API revision to pull down.- Parameters:
- ver- the API minor version.
 
- 
setCycleSets the Google Maps release cycle to use.- Parameters:
- c- the cycle name
 
- 
setLibrariesSets the Google Maps v3 libraries to load.- Parameters:
- libList- a comma-separated list of libraries
 
- 
setJsSets the Javascript libraries to load after the API is loaded.- Parameters:
- jsList- a comma-separated list of libraries
 
- 
setCallbackSets the JavaScript callback function to be called when the Google Maps API has completed loading.- Parameters:
- cb- the callback function name
 
- 
setPageContext- Specified by:
- setPageContextin interface- Tag
- Overrides:
- setPageContextin class- TagSupport
 
- 
releasepublic void release()- Specified by:
- releasein interface- Tag
- Overrides:
- releasein class- TagSupport
 
- 
doEndTagRenders the JSP tag.- Specified by:
- doEndTagin interface- Tag
- Overrides:
- doEndTagin class- TagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
- JspException- if no Google Maps API key defined
 
 
-