com.googlecode.gwtmapquest.transaction
Class MQAEventManager
java.lang.Object
JavaScriptObject
com.googlecode.gwtmapquest.transaction.MQAEventManager
public class MQAEventManager
- extends JavaScriptObject
|
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 |
MQAEventManager
protected MQAEventManager()
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