Class GoogleMapMarker.GoogleMapMarkerRightClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
com.vaadin.flow.component.ClickEvent<GoogleMapMarker>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapMarker.GoogleMapMarkerRightClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GoogleMapMarker
@DomEvent("google-map-marker-rightclick")
public static class GoogleMapMarker.GoogleMapMarkerRightClickEvent
extends ClickEvent<GoogleMapMarker>
Event called on marker's right click.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapMarkerRightClickEvent(GoogleMapMarker source, boolean fromClient, int screenX, int screenY, int clientX, int clientY, int clickCount, int button, boolean ctrlKey, boolean shiftKey, boolean altKey, boolean metaKey, double lat, double lon) Creates a new event with the right click coordinates as separate lat/lon values.GoogleMapMarkerRightClickEvent(GoogleMapMarker source, boolean fromClient, int screenX, int screenY, int clientX, int clientY, int clickCount, int button, boolean ctrlKey, boolean shiftKey, boolean altKey, boolean metaKey, elemental.json.JsonValue latLng) Deprecated.since 2.6.0, for removal. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ClickEvent
getButton, getClickCount, getClientX, getClientY, getScreenX, getScreenY, isAltKey, isCtrlKey, isMetaKey, isShiftKeyMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
GoogleMapMarkerRightClickEvent
public GoogleMapMarkerRightClickEvent(GoogleMapMarker source, boolean fromClient, @EventData("event.detail.domEvent.screenX") int screenX, @EventData("event.detail.domEvent.screenY") int screenY, @EventData("event.detail.domEvent.clientX") int clientX, @EventData("event.detail.domEvent.clientY") int clientY, @EventData("event.detail.domEvent.detail") int clickCount, @EventData("event.detail.domEvent.button") int button, @EventData("event.detail.domEvent.ctrlKey") boolean ctrlKey, @EventData("event.detail.domEvent.shiftKey") boolean shiftKey, @EventData("event.detail.domEvent.altKey") boolean altKey, @EventData("event.detail.domEvent.metaKey") boolean metaKey, @EventData("event.detail.latLng.lat()") double lat, @EventData("event.detail.latLng.lng()") double lon) Creates a new event with the right click coordinates as separate lat/lon values.- Parameters:
source- the marker that was right clickedfromClient- whether the event originated on the client sidescreenX- the screen X coordinate of the clickscreenY- the screen Y coordinate of the clickclientX- the client X coordinate of the clickclientY- the client Y coordinate of the clickclickCount- the click countbutton- the mouse buttonctrlKey- whether Ctrl key was pressedshiftKey- whether Shift key was pressedaltKey- whether Alt key was pressedmetaKey- whether Meta key was pressedlat- the latitude of the clicklon- the longitude of the click
-
GoogleMapMarkerRightClickEvent
@Deprecated public GoogleMapMarkerRightClickEvent(GoogleMapMarker source, boolean fromClient, @EventData("event.detail.domEvent.screenX") int screenX, @EventData("event.detail.domEvent.screenY") int screenY, @EventData("event.detail.domEvent.clientX") int clientX, @EventData("event.detail.domEvent.clientY") int clientY, @EventData("event.detail.domEvent.detail") int clickCount, @EventData("event.detail.domEvent.button") int button, @EventData("event.detail.domEvent.ctrlKey") boolean ctrlKey, @EventData("event.detail.domEvent.shiftKey") boolean shiftKey, @EventData("event.detail.domEvent.altKey") boolean altKey, @EventData("event.detail.domEvent.metaKey") boolean metaKey, elemental.json.JsonValue latLng) Deprecated.since 2.6.0, for removal. UseGoogleMapMarkerRightClickEvent(GoogleMapMarker, boolean, int, int, int, int, int, int, boolean, boolean, boolean, boolean, double, double)instead.Creates a new event with the right click coordinates as a JSON value.- Parameters:
source- the marker that was right clickedfromClient- whether the event originated on the client sidescreenX- the screen X coordinate of the clickscreenY- the screen Y coordinate of the clickclientX- the client X coordinate of the clickclientY- the client Y coordinate of the clickclickCount- the click countbutton- the mouse buttonctrlKey- whether Ctrl key was pressedshiftKey- whether Shift key was pressedaltKey- whether Alt key was pressedmetaKey- whether Meta key was pressedlatLng- a JSON object containinglatandlngproperties
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude()
-