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.LayerEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LayerAddEvent, LayerRemoveEvent

public abstract class LayerEvent extends LeafletEvent
Represents the Leaflet LayerEevent
Since:
2020-03-14
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
See Also:
  • Constructor Details

    • LayerEvent

      public LayerEvent(LeafletMap source, boolean fromClient, String layerId, LayerEventType eventType, Layer child)
      Creates a new layer event.
      Parameters:
      source - the source component
      fromClient - true if the event originated on the client side
      layerId - the identifier of the layer
      eventType - the specific layer event type
      child - the layer that was added or removed
  • Method Details

    • getChild

      public Layer getChild()
      The layer that was added or removed.
      Returns:
      the child
    • toString

      public String toString()
      Overrides:
      toString in class LeafletEvent