Class LegendTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.LegendTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class LegendTag extends TagSupport
A JSP Tag to display a legend entry for a Google Maps marker.
Since:
1.0
Version:
5.0
Author:
Luke
See Also:
  • Constructor Details

    • LegendTag

      public LegendTag()
  • Method Details

    • setColor

      public void setColor(String color)
      Sets the marker color.
      Parameters:
      color - the marker color
    • setLegend

      public void setLegend(String legend)
      Sets the marker legend.
      Parameters:
      legend - the legend text
    • setClassName

      public void setClassName(String cName)
      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 interface Tag
      Overrides:
      release in class TagSupport
    • doEndTag

      public int doEndTag() throws JspException
      Renders the marker image and legend text to the JSP output stream.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      JspException - if an error occurs