com.googlecode.gwtmapquest.transaction
Class MQAEventManager

java.lang.Object
  extended by JavaScriptObject
      extended by com.googlecode.gwtmapquest.transaction.MQAEventManager

public class MQAEventManager
extends JavaScriptObject


Constructor Summary
protected MQAEventManager()
           
 
Method Summary
static void addListener(JavaScriptObject source, java.lang.String eventType, JavaScriptObject handlerFunction)
           
static void clearListeners(JavaScriptObject source)
          Removes all handlers on the given object for all events that were installed using addListener().
static void clearListeners(JavaScriptObject source, java.lang.String eventType)
          Removes all handlers on the given object for the given event that were installed using addListener()
static void removeListener(JavaScriptObject source, java.lang.String eventType, JavaScriptObject handlerFunction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MQAEventManager

protected MQAEventManager()
Method Detail

addListener

public static void addListener(JavaScriptObject source,
                               java.lang.String eventType,
                               JavaScriptObject handlerFunction)
Parameters:
source -
eventType -
handlerFunction - the function to call when the event triggers.

removeListener

public static void removeListener(JavaScriptObject source,
                                  java.lang.String eventType,
                                  JavaScriptObject handlerFunction)

clearListeners

public static void clearListeners(JavaScriptObject source)
Removes all handlers on the given object for all events that were installed using addListener().

Parameters:
source -

clearListeners

public static void clearListeners(JavaScriptObject source,
                                  java.lang.String eventType)
Removes all handlers on the given object for the given event that were installed using addListener()

Parameters:
source -
eventType - such as "shapeAdded", "shapeRemoved", "mapCleared", "zoomEnd", etc