com.lamatek.tags.google
Class GoogleMapMarkerTag

java.lang.Object
  extended by BodyTagSupport
      extended by com.lamatek.tags.google.GoogleMapMarkerTag
All Implemented Interfaces:
GoogleMapEventListener, java.io.Serializable

public class GoogleMapMarkerTag
extends BodyTagSupport
implements java.io.Serializable, GoogleMapEventListener

GoogleMapMarkerTag This class represents a <googlemaps:marker> tag. Developers should not subclass or override this class or it's methods.

Version:
0.40
Author:
Tom Cole

Constructor Summary
GoogleMapMarkerTag()
           
 
Method Summary
 void addEvent(GoogleMapEventTag event)
          Adds an event to this marker.
 int doEndTag()
          Overrides doStartTag() from BodytagSupport.
 int doStartTag()
          Overrides doStartTag() from BodytagSupport.
 GoogleMapBlowupTag getBlowup()
          Returns the currently defined blowup window for this marker.
 java.util.Vector getEvents()
          Returns the list of currently registered event listeners for this overlay.
 GoogleMapIconTag getIcon()
          Returns the GoogleMapIconTag that renders this marker, or null if the default markers are used.
 java.lang.String getId()
          Returns this marker's id.
 InfoWindow getInfoWindow()
          Returns the currently defined info window for this marker.
 java.lang.String getPoint()
          Returns the id of the GoogleMapPointTag used as the centerpoint for this marker.
 boolean isDraggable()
          Denotes whether or not this marker should be draggable.
 void setBlowup(GoogleMapBlowupTag blowup)
          Sets the map blowup window for this marker.
 void setDraggable(boolean draggable)
          Sets wheter or not this marker should be draggable.
 void setEvents(java.util.Vector events)
          Sets a list of registered event listeners.
 void setIcon(GoogleMapIconTag icon)
          Sets a GoogleMapIconTag for this marker, overriding the standard Google Maps marker icon.
 void setId(java.lang.String id)
          Sets the unique id for this marker.
 void setInfoWindow(InfoWindow infoWindow)
          Sets the info window for this marker.
 void setPoint(java.lang.String point)
          Sets the id for the GoogleMapPointTag used as the centerpoing for this marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMapMarkerTag

public GoogleMapMarkerTag()
Method Detail

doStartTag

public int doStartTag()
Overrides doStartTag() from BodytagSupport. Developers should not override this method.


doEndTag

public int doEndTag()
Overrides doStartTag() from BodytagSupport. Developers should not override this method.


addEvent

public void addEvent(GoogleMapEventTag event)
Adds an event to this marker. Only events of type 'click' or 'dblclick' will actually register.

Specified by:
addEvent in interface GoogleMapEventListener
Parameters:
event - An initializes GoogleMapEventTag

setInfoWindow

public void setInfoWindow(InfoWindow infoWindow)
Sets the info window for this marker. There can only be one info window per marker, so successive calls to this method will remove the previous info window, replacing it with the current one.

Parameters:
infoWindow - A tag that implements InfoWindow

setBlowup

public void setBlowup(GoogleMapBlowupTag blowup)
Sets the map blowup window for this marker. There can only be one blowup window per marker, so successive calls to this method will remove the previous blowup window, replacing it with the current one.

Parameters:
infoWindow - An initialized GoogleMapBlowupTag

setIcon

public void setIcon(GoogleMapIconTag icon)
Sets a GoogleMapIconTag for this marker, overriding the standard Google Maps marker icon.

Parameters:
icon - An initialized GoogleMapIconTag

getInfoWindow

public InfoWindow getInfoWindow()
Returns the currently defined info window for this marker.

Returns:
A GoogleMapInfoWindowTag

getBlowup

public GoogleMapBlowupTag getBlowup()
Returns the currently defined blowup window for this marker.

Returns:
A GoogleMapBlowupTag

getId

public java.lang.String getId()
Returns this marker's id.

Returns:
A String representing the marker's id.

setId

public void setId(java.lang.String id)
Sets the unique id for this marker.

Parameters:
id - A unique id for this marker instance.

getPoint

public java.lang.String getPoint()
Returns the id of the GoogleMapPointTag used as the centerpoint for this marker.

Returns:
A GoogleMapPointTag id.

setPoint

public void setPoint(java.lang.String point)
Sets the id for the GoogleMapPointTag used as the centerpoing for this marker.

Parameters:
point - A valid GoogleMapPointTag id.

getEvents

public java.util.Vector getEvents()
Returns the list of currently registered event listeners for this overlay.

Specified by:
getEvents in interface GoogleMapEventListener
Returns:
A Vector of GoogleMapEventTags

setEvents

public void setEvents(java.util.Vector events)
Sets a list of registered event listeners.

Parameters:
events - A Vector of GoogleMapEventTags.

getIcon

public GoogleMapIconTag getIcon()
Returns the GoogleMapIconTag that renders this marker, or null if the default markers are used.

Returns:
A GoogleMapIconTag or null.

isDraggable

public boolean isDraggable()
Denotes whether or not this marker should be draggable.

Returns:
True if this marker is draggable. False if not.

setDraggable

public void setDraggable(boolean draggable)
Sets wheter or not this marker should be draggable. Default is false.

Parameters:
draggable - True if this marker is to be draggable, false if not.