com.google.gwt.maps.client.event
Class MapRightClickHandler.MapRightClickEvent
java.lang.Object
java.util.EventObject
com.google.gwt.maps.client.event.MapRightClickHandler.MapRightClickEvent
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing interface:
- MapRightClickHandler
public static class MapRightClickHandler.MapRightClickEvent
- extends java.util.EventObject
Encapsulates the arguments for the "click" event on a MapWidget
.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
com.google.gwt.user.client.Element |
getElement()
Returns the DOM element that generated this event. |
Overlay |
getOverlay()
If the click was on a marker, then the marker is passed to the event
handler in the overlay argument, and a click event is also fired on the
marker. |
Point |
getPoint()
Returns the pixel coordinate of the click. |
MapWidget |
getSender()
Returns the instance of the map that generated this event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MapRightClickHandler.MapRightClickEvent
public MapRightClickHandler.MapRightClickEvent(MapWidget source,
Point point,
com.google.gwt.user.client.Element elem,
Overlay overlay)
getElement
public com.google.gwt.user.client.Element getElement()
- Returns the DOM element that generated this event.
- Returns:
- the DOM element that generated this event.
getOverlay
public Overlay getOverlay()
- If the click was on a marker, then the marker is passed to the event
handler in the overlay argument, and a click event is also fired on the
marker.
- Returns:
- an overlay instance if the click is on a marker, otherwise
null
.
getPoint
public Point getPoint()
- Returns the pixel coordinate of the click.
- Returns:
- a pixel coordinate for the click.
getSender
public MapWidget getSender()
- Returns the instance of the map that generated this event.
- Returns:
- the instance of the map that generated this event.