Class PopupEvent
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
Base class for the Leaflet popup events fired when a popup is opened or closed.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPopupEvent(LeafletMap source, boolean fromClient, String layerId, PopupEventType eventType, Popup popup) Creates a new popup event. -
Method Summary
Methods 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
-
PopupEvent
public PopupEvent(LeafletMap source, boolean fromClient, String layerId, PopupEventType eventType, Popup popup) Creates a new popup event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the layer the popup is bound toeventType- the type of the popup eventpopup- the popup the event relates to
-
-
Method Details
-
getPopup
Returns the popup the event relates to.- Returns:
- the popup
-
toString
- Overrides:
toStringin classLeafletEvent
-