Class LegendTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.mapbox.LegendTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
public class LegendTag
extends jakarta.servlet.jsp.tagext.TagSupport
A JSP Tag to display a legend entry for a MapBox marker.
- Since:
- 1.0
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields 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 marker image and legend text to the JSP output stream.voidrelease()voidsetClassName(String cName) Sets the CSS class name for the marker legend.voidSets the marker color.voidSets the marker legend.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
LegendTag
public LegendTag()
-
-
Method Details
-
setColor
-
setLegend
-
setClassName
Sets the CSS class name for the marker legend.- Parameters:
cName- the CSS class name
-
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 marker image and legend text to the JSP output stream.- 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 an error occurs
-