Class DragEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<LeafletMap>
org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.BaseMoveEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.DragEvent
- All Implemented Interfaces:
Serializable
Event fired repeatedly while the user drags a marker or layer, carrying the previous and the
current coordinates.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDragEvent(LeafletMap source, boolean fromClient, String layerId, Double newLat, Double newLng, double oldLat, double oldLng) Creates a new drag event. -
Method Summary
Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.BaseMoveEvent
getLatLng, getOldLatLngMethods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
getLayerId, getTypeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListener
-
Constructor Details
-
DragEvent
public DragEvent(LeafletMap source, boolean fromClient, @EventData("event.target.options.uuid") String layerId, @EventData("event.latlng.lat") Double newLat, @EventData("event.latlng.lng") Double newLng, @EventData("event.oldLatLng.lat") double oldLat, @EventData("event.oldLatLng.lng") double oldLng) Creates a new drag event.- Parameters:
source- the component that fired the eventfromClient-trueif the event originated from the client sidelayerId- the identifier of the layer being draggednewLat- the latitude of the new coordinatesnewLng- the longitude of the new coordinatesoldLat- the latitude of the previous coordinatesoldLng- the longitude of the previous coordinates
-
-
Method Details
-
toString
- Overrides:
toStringin classBaseMoveEvent
-