Class GoogleMapAdvancedMarker.GoogleMapAdvancedMarkerClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
com.vaadin.flow.component.ClickEvent<GoogleMapAdvancedMarker>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapAdvancedMarker.GoogleMapAdvancedMarkerClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GoogleMapAdvancedMarker
@DomEvent("google-map-marker-click")
public static class GoogleMapAdvancedMarker.GoogleMapAdvancedMarkerClickEvent
extends ClickEvent<GoogleMapAdvancedMarker>
Event called on marker's click.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapAdvancedMarkerClickEvent(GoogleMapAdvancedMarker 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 click data. -
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
-
GoogleMapAdvancedMarkerClickEvent
public GoogleMapAdvancedMarkerClickEvent(GoogleMapAdvancedMarker 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 click data.- Parameters:
source- the marker that was 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 markerlon- the longitude of the marker
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude()
-