Class InsertAPITag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.mapbox.InsertAPITag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
public class InsertAPITag
extends jakarta.servlet.jsp.tagext.TagSupport
A JSP tag to insert a link to the Mapbox JS API.
- Since:
- 12.0
- Version:
- 12.1
- Author:
- Luke
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final StringFields 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()intvoidSets the Javascript libraries to load after the API is loaded.voidsetVersion(int ver) Sets the Google API version to pull down.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, 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
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-