Class LegendTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.LegendTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP Tag to display a legend entry for a Google Maps marker.
- Since:
- 1.0
- Version:
- 5.0
- Author:
- Luke
- See Also:
-
Field Summary
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()
Renders the marker image and legend text to the JSP output stream.void
release()
Releases the tag's state variables.void
setClassName
(String cName) Sets the CSS class name for the marker legend.void
Sets the marker color.void
Sets the marker legend.Methods inherited from class javax.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()Releases the tag's state variables.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Renders the marker image and legend text to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-