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

public class LeafletEvent extends com.vaadin.flow.component.ComponentEvent<LeafletMap>
The base event object. All other event objects contain these properties too.
See Also:
  • Constructor Details

    • LeafletEvent

      public LeafletEvent(LeafletMap source, boolean fromClient, String layerId, LeafletEventType type)
      Creates a new Leaflet event.
      Parameters:
      source - the source component
      fromClient - true if the event originated on the client side
      layerId - the id of the layer that fired the event
      type - the event type
  • Method Details

    • getLayerId

      public String 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

      public LeafletEventType getType()
      The event type (e.g. 'click').
      Returns:
      the event type
    • toString

      public String toString()
      Overrides:
      toString in class EventObject