com.mapitz.gwt.googleMaps.client
Class GMarkerEventManager

java.lang.Object
  extended by com.mapitz.gwt.googleMaps.client.GMarkerEventManager

public class GMarkerEventManager
extends java.lang.Object

Event Manager which manages GMarker events

Author:
aglaforge

Constructor Summary
GMarkerEventManager()
           
 
Method Summary
 void addOnClickListener(GMarker marker, GMarkerEventListener listener)
          click none This event is fired when the marker icon was clicked.
 void addOnDblClickListener(GMarker marker, GMarkerEventListener listener)
          dblclick none This event is fired when the marker icon was double-clicked.
 void addOnInfoWindowCloseListener(GMarker marker, GMarkerEventListener listener)
          infowindowclose none This event is fired when the info window of the map that was opened through this marker is closed again.
 void addOnInfoWindowOpenListener(GMarker marker, GMarkerEventListener listener)
          infowindowopen none This event is fired when the info window of the map was opened through this marker.
 void addOnMouseDownListener(GMarker marker, GMarkerEventListener listener)
          mousedown none This event is fired when the DOM mousedown event is fired on the marker icon.
 void addOnMouseOutListener(GMarker marker, GMarkerEventListener listener)
          mouseout none This event is fired when the mouse leaves the area of the marker icon.
 void addOnMouseOverListener(GMarker marker, GMarkerEventListener listener)
          mouseover none This event is fired when the mouse enters the area of the marker icon.
 void addOnMouseUpListener(GMarker marker, GMarkerEventListener listener)
          mouseup none This event is fired for the DOM mouseup on the marker.
 void addOnRemoveListener(GMarker marker, GMarkerEventListener listener)
          remove none This event is fired when the marker is removed from the map, using GMap2.removeOverlay() or GMap2.clearOverlays().
 void onClick(GMarker marker)
           
 void onDblClick(GMarker marker)
           
 void onInfoWindowClose(GMarker marker)
           
 void onInfoWindowOpen(GMarker marker)
           
 void onMouseDown(GMarker marker)
           
 void onMouseOut(GMarker marker)
           
 void onMouseOver(GMarker marker)
           
 void onMouseUp(GMarker marker)
           
 void onRemove(GMarker marker)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMarkerEventManager

public GMarkerEventManager()
Method Detail

addOnClickListener

public void addOnClickListener(GMarker marker,
                               GMarkerEventListener listener)
click none This event is fired when the marker icon was clicked. Notice that this event will also fire for the map, with the marker passed as the first argument to the event handler there.


onClick

public void onClick(GMarker marker)

addOnDblClickListener

public void addOnDblClickListener(GMarker marker,
                                  GMarkerEventListener listener)
dblclick none This event is fired when the marker icon was double-clicked. Notice that this event will not fire for the map, because the map centers on double-click as a hardwired behavior.


onDblClick

public void onDblClick(GMarker marker)

addOnMouseDownListener

public void addOnMouseDownListener(GMarker marker,
                                   GMarkerEventListener listener)
mousedown none This event is fired when the DOM mousedown event is fired on the marker icon. Notice that the marker will stop the mousedown DOM event, so that it doesn't cause the map to start dragging.


onMouseDown

public void onMouseDown(GMarker marker)

addOnMouseUpListener

public void addOnMouseUpListener(GMarker marker,
                                 GMarkerEventListener listener)
mouseup none This event is fired for the DOM mouseup on the marker. Notice that the marker will not stop the mousedown DOM event, because it will not confuse the drag handler of the map.


onMouseUp

public void onMouseUp(GMarker marker)

addOnMouseOverListener

public void addOnMouseOverListener(GMarker marker,
                                   GMarkerEventListener listener)
mouseover none This event is fired when the mouse enters the area of the marker icon.


onMouseOver

public void onMouseOver(GMarker marker)

addOnMouseOutListener

public void addOnMouseOutListener(GMarker marker,
                                  GMarkerEventListener listener)
mouseout none This event is fired when the mouse leaves the area of the marker icon.


onMouseOut

public void onMouseOut(GMarker marker)

addOnInfoWindowOpenListener

public void addOnInfoWindowOpenListener(GMarker marker,
                                        GMarkerEventListener listener)
infowindowopen none This event is fired when the info window of the map was opened through this marker.


onInfoWindowOpen

public void onInfoWindowOpen(GMarker marker)

addOnInfoWindowCloseListener

public void addOnInfoWindowCloseListener(GMarker marker,
                                         GMarkerEventListener listener)
infowindowclose none This event is fired when the info window of the map that was opened through this marker is closed again. This happens when either the info window was closed, or when it was opened on another marker, or on the map.


onInfoWindowClose

public void onInfoWindowClose(GMarker marker)

addOnRemoveListener

public void addOnRemoveListener(GMarker marker,
                                GMarkerEventListener listener)
remove none This event is fired when the marker is removed from the map, using GMap2.removeOverlay() or GMap2.clearOverlays().


onRemove

public void onRemove(GMarker marker)