Class LayersControlEvent
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseLayerChangeEvent,OverlayAddEvent,OverlayRemoveEvent
Base class for events fired by a
LayersControl when a layer is added,
removed or changed through the control.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLayersControlEvent(LeafletMap source, boolean fromClient, String layerId, LayersControl.LayerControlEventType type, String name) Creates a new layers control event. -
Method Summary
Methods 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
-
LayersControlEvent
public LayersControlEvent(LeafletMap source, boolean fromClient, String layerId, LayersControl.LayerControlEventType type, String name) Creates a new layers control event.- Parameters:
source- the map on which the event originatedfromClient-trueif the event originated from the client side,falseotherwiselayerId- the id of the layer that was added, removed or changedtype- the type of the layers control eventname- the name of the layer that was added, removed or changed
-
-
Method Details
-
getName
The name of the layer that was added or removed.- Returns:
- name of the layer that was added or removed.
-