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.PopupEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PopupCloseEvent, PopupOpenEvent

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

    • PopupEvent

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

    • getPopup

      public Popup getPopup()
      Returns the popup the event relates to.
      Returns:
      the popup
    • toString

      public String toString()
      Overrides:
      toString in class LeafletEvent