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:
  • 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 clicked
      fromClient - whether the event originated on the client side
      screenX - the screen X coordinate of the click
      screenY - the screen Y coordinate of the click
      clientX - the client X coordinate of the click
      clientY - the client Y coordinate of the click
      clickCount - the click count
      button - the mouse button
      ctrlKey - whether Ctrl key was pressed
      shiftKey - whether Shift key was pressed
      altKey - whether Alt key was pressed
      metaKey - whether Meta key was pressed
      lat - the latitude of the click
      lon - 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)
      Creates a new event with the right click coordinates as a JSON value.
      Parameters:
      source - the marker that was right clicked
      fromClient - whether the event originated on the client side
      screenX - the screen X coordinate of the click
      screenY - the screen Y coordinate of the click
      clientX - the client X coordinate of the click
      clientY - the client Y coordinate of the click
      clickCount - the click count
      button - the mouse button
      ctrlKey - whether Ctrl key was pressed
      shiftKey - whether Shift key was pressed
      altKey - whether Alt key was pressed
      metaKey - whether Meta key was pressed
      latLng - a JSON object containing lat and lng properties
  • Method Details

    • getLatitude

      public double getLatitude()
    • getLongitude

      public double getLongitude()