Class OverlayAddEvent
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.controls.LayersControlEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.OverlayAddEvent
- All Implemented Interfaces:
Serializable
Event fired when an overlay layer is selected (added to the map) through the layers control.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionOverlayAddEvent(LeafletMap source, boolean fromClient, String layerId, String name) Creates a new overlay add event. -
Method Summary
Methods inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LayersControlEvent
getNameMethods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
getLayerId, getType, toStringMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListener
-
Constructor Details
-
OverlayAddEvent
public OverlayAddEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.name") String name) Creates a new overlay add event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the overlay layer that was addedname- the name of the overlay layer as shown in the layers control
-