org.gwtopenmaps.openlayers.client.event
Class EventObject
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.event.EventObject
- Direct Known Subclasses:
- BeforeGetFeatureInfoListener.BeforeGetFeatureInfoEvent, BoxEvent, ControlActivateListener.ControlActivateEvent, ControlDeactivateListener.ControlDeactivateEvent, GetFeatureInfoListener.GetFeatureInfoEvent, LayerLoadCancelListener.LoadCancelEvent, LayerLoadEndListener.LoadEndEvent, LayerLoadStartListener.LoadStartEvent, LayerVisibilityChangedListener.VisibilityChangedEvent, MapBaseLayerChangedListener.MapBaseLayerChangedEvent, MapClickListener.MapClickEvent, MapLayerAddedListener.MapLayerAddedEvent, MapLayerChangedListener.MapLayerChangedEvent, MapLayerRemovedListener.MapLayerRemovedEvent, MapMarkerAddedListener.MapMarkerAddedEvent, MapMarkerRemovedListener.MapMarkerRemovedEvent, MapMoveEndListener.MapMoveEndEvent, MapMoveListener.MapMoveEvent, MapPopupClosedListener.MapPopupClosedEvent, MapPopupOpenedListener.MapPopupOpenedEvent, MapZoomListener.MapZoomEvent, MarkerBrowserEventListener.MarkerBrowserEvent, MeasureEvent, NoGetFeatureInfoListener.NoGetFeatureInfoEvent, VectorAfterFeatureModifiedListener.AfterFeatureModifiedEvent, VectorBeforeFeatureAddedListener.BeforeFeatureAddedEvent, VectorBeforeFeatureModifiedListener.BeforeFeatureModifiedEvent, VectorFeatureAddedListener.FeatureAddedEvent, VectorFeatureModifiedListener.FeatureModifiedEvent, VectorFeatureRemovedListener.FeatureRemovedEvent, VectorFeatureSelectedListener.FeatureSelectedEvent, VectorFeatureUnselectedListener.FeatureUnselectedEvent, VectorVertexModifiedListener.VertexModifiedEvent
public class EventObject
- extends JSObjectWrapper
Base class for event objects.
Caveat: In Openlayers 2.x event handling is not yet implemented uniformly in OpenLayers. This should be fixed in version 3.x and higher.
In OpenLayers, an event object is an argument that gets passed to the listener when it is called.
In GWT OpenLayers, this event object gets passed to the onHandle method of the EventHandler EventHandler
when
the onHandle method is called. An event object class extending this base class can wrap this event object.
Depending on which event is fired, and from which source the event is fired
(e.g. Map, Layer, etc.), the event object may differ. Therefore, the
addXxxListener methods (see also EventHandler
) that abstract from event registration details,
wrap the event object passed to onHandle in a way that is specific to the event.
- Author:
- Edwin Commandeur - Atlis EJS
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventObject
protected EventObject(JSObject eventObject)
narrowToEventObject
public static EventObject narrowToEventObject(JSObject object)
getElement
public JSObject getElement()
- Returns:
- Element as an opaque JSObject
getType
public String getType()
- Type is a string like "addlayer" or "move" denoting the type of event.
- Returns:
- A string denoting the type of event, or null if there is no type property.
getSourceJSObject
public JSObject getSourceJSObject()
- Returns:
- JSObject - source object that fired the event
Copyright © 2011 sourceforge. All Rights Reserved.