Class AddEvent
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.AddEvent
- All Implemented Interfaces:
Serializable
Event fired when a layer is added to the map.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAddEvent(LeafletMap source, boolean fromClient, String layerId) Creates a new add 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
-
AddEvent
public AddEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId) Creates a new add event.- Parameters:
source- the component that fired the eventfromClient-trueif the event originated from the client sidelayerId- the identifier of the layer that was added
-