Class LeafletEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<LeafletMap>
org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddEvent,BaseMoveEvent,DragEndEvent,ErrorEvent,KeyboardEvent,LayerEvent,LayersControlEvent,LoadEvent,LocationEvent,MouseEvent,MoveEndEvent,MoveStartEvent,PopupEvent,RemoveEvent,ResizeEvent,TileEvent,TooltipEvent,UnloadEvent,ViewResetEvent,ZoomAnimEvent,ZoomEndEvent,ZoomEvent,ZoomLevelsChangeEvent,ZoomStartEvent
The base event object. All other event objects contain these properties too.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLeafletEvent(LeafletMap source, boolean fromClient, String layerId, LeafletEventType type) Creates a new Leaflet event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListener
-
Constructor Details
-
LeafletEvent
Creates a new Leaflet event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the id of the layer that fired the eventtype- the event type
-
-
Method Details
-
getLayerId
The object that fired the event. For propagated events, the last object in the propagation chain that fired the event.- Returns:
- the layer id
-
getType
The event type (e.g. 'click').- Returns:
- the event type
-
toString
- Overrides:
toStringin classEventObject
-