Class InsertAPITag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.mapbox.InsertAPITag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to insert a link to the Mapbox JS API.
- Since:
- 12.0
- Version:
- 12.0
- Author:
- Luke
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final String
Fields 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()
void
Sets the Javascript libraries to load after the API is loaded.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, release, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
API_JS_NAME
- See Also:
-
API_VER_ATTR_NAME
- See Also:
-
-
Constructor Details
-
InsertAPITag
public InsertAPITag()
-
-
Method Details
-
setVersion
public void setVersion(int ver) Sets the Google API version to pull down.- Parameters:
ver
- the API major version
-
setJs
Sets the Javascript libraries to load after the API is loaded.- Parameters:
jsList
- a comma-separated list of libraries
-
doEndTag
- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Throws:
JspException
-