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.TooltipEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TooltipCloseEvent, TooltipOpenEvent

public abstract class TooltipEvent extends LeafletEvent
Base class for the Leaflet tooltip events fired when a tooltip is opened or closed.
See Also:
  • Constructor Details

    • TooltipEvent

      public TooltipEvent(LeafletMap source, boolean fromClient, String layerId, TooltipEventType eventType, Tooltip tooltip)
      Creates a new tooltip event.
      Parameters:
      source - the source component
      fromClient - true if the event originated on the client side
      layerId - the identifier of the layer the tooltip is bound to
      eventType - the type of the tooltip event
      tooltip - the tooltip the event relates to
  • Method Details

    • getTooltip

      public Tooltip getTooltip()
      Returns the tooltip the event relates to.
      Returns:
      the tooltip
    • toString

      public String toString()
      Overrides:
      toString in class LeafletEvent