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