org.deltava.taglib.googlemap
Class MarkerArrayTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.deltava.taglib.JSTag
          extended by org.deltava.taglib.googlemap.GoogleMapEntryTag
              extended by org.deltava.taglib.googlemap.MarkerArrayTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class MarkerArrayTag
extends GoogleMapEntryTag

A JSP Tag to generate a JavaScript array of Google Maps v2 GMarkers.

Since:
1.0
Version:
2.2
Author:
Luke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deltava.taglib.googlemap.GoogleMapEntryTag
API_JS_NAME
 
Fields inherited from class org.deltava.taglib.JSTag
_jsVarName
 
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
MarkerArrayTag()
           
 
Method Summary
 int doEndTag()
          Renders the tag data to the JSP output stream, generating a JavaScript array with a number of Google Maps markers.
 void release()
          Releases the tag's state variables.
 void setColor(String color)
          Sets the icon color for these markers.
 void setItems(Collection<GeoLocation> points)
          Sets the points used to generate the array.
 void setMarker(boolean useMarker)
          Forces the marker to be rendered using a marker image instead of a Google Earth icon.
 
Methods inherited from class org.deltava.taglib.googlemap.GoogleMapEntryTag
doStartTag, generateIconMarker, generateMarker
 
Methods inherited from class org.deltava.taglib.JSTag
setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerArrayTag

public MarkerArrayTag()
Method Detail

setColor

public void setColor(String color)
Sets the icon color for these markers. This overrides any color provided by the points.

Parameters:
color - the icon color
See Also:
MarkerMapEntry.getIconColor()

setMarker

public void setMarker(boolean useMarker)
Forces the marker to be rendered using a marker image instead of a Google Earth icon.

Parameters:
useMarker - TRUE if a marker must be used, otherwise FALSE

setItems

public void setItems(Collection<GeoLocation> points)
Sets the points used to generate the array.

Parameters:
points - a Collection of GeoLocations

release

public void release()
Releases the tag's state variables.

Specified by:
release in interface Tag
Overrides:
release in class JSTag

doEndTag

public int doEndTag()
             throws JspException
Renders the tag data to the JSP output stream, generating a JavaScript array with a number of Google Maps markers.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
TagSupport.EVAL_PAGE always
Throws:
JspException - if a network error occurs


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.