Follow us on GitHub

com.google.gwt.maps.client.events
Class MapHandlerRegistration

java.lang.Object
  extended by com.google.gwt.maps.client.events.MapHandlerRegistration

public class MapHandlerRegistration
extends Object


Constructor Summary
MapHandlerRegistration()
           
 
Method Summary
static
<E> void
addDomListener(JavaScriptObject jso, DomEvent.Type<ClickHandler> type, MapHandler<E> handler, boolean capture)
          experimental for the moment.
static
<E extends MapEvent>
HandlerRegistration
addHandler(JavaScriptObject jso, MapEventType eventType, MapHandler<E> handler, MapEventFormatter<E> formatter)
          event handler
static
<E extends MapEvent>
HandlerRegistration
addHandlerDrawing(JavaScriptObject jso, MapEventType eventType, MapHandler<E> handler, MapEventFormatter<E> formatter)
          event handler for the drawing overlay objects
static
<E extends MapEvent>
HandlerRegistration
addHandlerMvc(JavaScriptObject jso, MapEventType eventType, MapHandler<E> handler, MapEventFormatter<E> formatter)
          event handler for the mvc object
protected static
<E extends MapEvent>
void
onCallback(MapHandler<E> handler, com.google.gwt.ajaxloader.client.Properties properties, MapEventFormatter<E> formatter)
          process generic handler callback
static void trigger(MapWidget w, MapEventType eventType)
          Triggers the given event.
static void trigger(MapWidget w, MapEventType eventType, JavaScriptObject... objects)
          Triggers the given event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapHandlerRegistration

public MapHandlerRegistration()
Method Detail

addHandler

public static <E extends MapEvent> HandlerRegistration addHandler(JavaScriptObject jso,
                                                                  MapEventType eventType,
                                                                  MapHandler<E> handler,
                                                                  MapEventFormatter<E> formatter)
event handler

Parameters:
jso -
eventType -
handler -
formatter -

addHandlerMvc

public static <E extends MapEvent> HandlerRegistration addHandlerMvc(JavaScriptObject jso,
                                                                     MapEventType eventType,
                                                                     MapHandler<E> handler,
                                                                     MapEventFormatter<E> formatter)
event handler for the mvc object

Parameters:
jso -
eventType -
handler -
formatter -

addHandlerDrawing

public static <E extends MapEvent> HandlerRegistration addHandlerDrawing(JavaScriptObject jso,
                                                                         MapEventType eventType,
                                                                         MapHandler<E> handler,
                                                                         MapEventFormatter<E> formatter)
event handler for the drawing overlay objects

Parameters:
jso -
eventType -
handler -
formatter -

onCallback

protected static <E extends MapEvent> void onCallback(MapHandler<E> handler,
                                                      com.google.gwt.ajaxloader.client.Properties properties,
                                                      MapEventFormatter<E> formatter)
process generic handler callback

Parameters:
handler -
properties -
formatter -

trigger

public static void trigger(MapWidget w,
                           MapEventType eventType,
                           JavaScriptObject... objects)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.
Note: Use Marker in objects to click on.

Parameters:
w -
eventType -
objects -

trigger

public static void trigger(MapWidget w,
                           MapEventType eventType)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.
Note: Use Marker in objects to click on.

Parameters:
w -
eventType -

addDomListener

public static <E> void addDomListener(JavaScriptObject jso,
                                      DomEvent.Type<ClickHandler> type,
                                      MapHandler<E> handler,
                                      boolean capture)
experimental for the moment. I'm not satisfied as of yet with this strategy. Cross browser event handler registration. This listener is removed by calling removeListener(handle) for the handle that is returned by this function.

Parameters:
jso -
type -
handler -
capture -


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.