Class GoogleMapPoly.GoogleMapPolyClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
com.vaadin.flow.component.ClickEvent<GoogleMapPolygon>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapPoly.GoogleMapPolyClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GoogleMapPoly
@DomEvent("google-map-poly-click")
public static class GoogleMapPoly.GoogleMapPolyClickEvent
extends ClickEvent<GoogleMapPolygon>
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapPolyClickEvent(GoogleMapPoly source, boolean fromClient, double lat, double lon) Creates a new event with the click coordinates as separate lat/lon values.GoogleMapPolyClickEvent(GoogleMapPoly source, boolean fromClient, elemental.json.JsonValue latLng) Deprecated.since 2.5.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
-
GoogleMapPolyClickEvent
public GoogleMapPolyClickEvent(GoogleMapPoly source, boolean fromClient, @EventData("event.detail.latLng.lat()") double lat, @EventData("event.detail.latLng.lng()") double lon) Creates a new event with the click coordinates as separate lat/lon values.- Parameters:
source- the polygon that was clickedfromClient- whether the event originated on the client sidelat- the latitude of the clicklon- the longitude of the click
-
GoogleMapPolyClickEvent
@Deprecated public GoogleMapPolyClickEvent(GoogleMapPoly source, boolean fromClient, elemental.json.JsonValue latLng) Deprecated.since 2.5.0, for removal. UseGoogleMapPolyClickEvent(GoogleMapPoly, boolean, double, double)instead.Creates a new event with the click coordinates as a JSON value.- Parameters:
source- the polygon that was clickedfromClient- whether the event originated on the client sidelatLng- a JSON object containinglatandlngproperties
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude()
-