Class OverlayRemoveEvent
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.OverlayRemoveEvent
- All Implemented Interfaces:
Serializable
Event fired when an overlay layer is deselected (removed from the map) through the layers
control.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionOverlayRemoveEvent(LeafletMap source, boolean fromClient, String layerId, String name) Creates a new overlay remove 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
-
OverlayRemoveEvent
public OverlayRemoveEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.name") String name) Creates a new overlay remove event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the overlay layer that was removedname- the name of the overlay layer as shown in the layers control
-