Class BaseLayerChangeEvent
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.BaseLayerChangeEvent
- All Implemented Interfaces:
Serializable
Event fired when a different base layer is selected through the layers control.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionBaseLayerChangeEvent(LeafletMap source, boolean fromClient, String layerId, String name) Creates a new base layer change 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
-
BaseLayerChangeEvent
public BaseLayerChangeEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.name") String name) Creates a new base layer change event.- Parameters:
source- the component that fired the eventfromClient-trueif the event originated from the client sidelayerId- the identifier of the layer that became the active base layername- the name of the newly selected base layer
-