Class LayerEvent
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
Represents the Leaflet LayerEevent
- Since:
- 2020-03-14
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLayerEvent(LeafletMap source, boolean fromClient, String layerId, LayerEventType eventType, Layer child) Creates a new layer event. -
Method Summary
Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
getLayerId, getTypeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListener
-
Constructor Details
-
LayerEvent
public LayerEvent(LeafletMap source, boolean fromClient, String layerId, LayerEventType eventType, Layer child) Creates a new layer event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the layereventType- the specific layer event typechild- the layer that was added or removed
-
-
Method Details
-
getChild
The layer that was added or removed.- Returns:
- the child
-
toString
- Overrides:
toStringin classLeafletEvent
-