My favorites | English | Sign in

Google Earth API

KmlEvent Interface Reference

Inheritance diagram for KmlEvent:

KmlMouseEvent

List of all members.


Public Member Functions

void preventDefault ()
void stopPropagation ()
GEEventEmitter getTarget ()
GEEventEmitter getCurrentTarget ()
GEEventPhaseEnum getEventPhase ()
bool getBubbles ()
bool getCancelable ()

Detailed Description

The event object used with all KMLObjects. For more information about events, see the Document Object Model Events specification at http:

Member Function Documentation

void KmlEvent.preventDefault (  ) 

Cancels the default action of the event. For example, calling this method in a placemark click handler prevents the placemark's default balloon from popping up.

void KmlEvent.stopPropagation (  ) 

Prevents event propagation. For example, if click event handlers are set up on both the GEGlobe and GEWindow objects, and stopPropagation is called in the GEGlobe click event handler, the GEWindow event handler will not be triggered when the globe is clicked.

GEEventEmitter KmlEvent.getTarget (  ) 

The object to which the KMLEvent was originally dispatched.

GEEventEmitter KmlEvent.getCurrentTarget (  ) 

The target whose event listeners are currently being processed.

GEEventPhaseEnum KmlEvent.getEventPhase (  ) 

The current stage of the flow of events.

bool KmlEvent.getBubbles (  ) 

Indicates whether or not an event is a bubbling event.

bool KmlEvent.getCancelable (  ) 

Indicates whether the event can be cancelled.

Note:
Currently, cancelable has no effect.