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

public abstract class LayersControlEvent extends LeafletEvent
Base class for events fired by a LayersControl when a layer is added, removed or changed through the control.
See Also:
  • 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 originated
      fromClient - true if the event originated from the client side, false otherwise
      layerId - the id of the layer that was added, removed or changed
      type - the type of the layers control event
      name - the name of the layer that was added, removed or changed
  • Method Details

    • getName

      public String getName()
      The name of the layer that was added or removed.
      Returns:
      name of the layer that was added or removed.