Class ErrorEvent
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.ErrorEvent
- All Implemented Interfaces:
Serializable
Represents the leaflet ErrorEvent
- Since:
- 2020-03-11
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionErrorEvent(LeafletMap source, boolean fromClient, String layerId, String message, int code) Creates a new error 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
-
ErrorEvent
public ErrorEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.message") String message, @EventData("event.detail.code") int code) Creates a new error event.- Parameters:
source- the component that fired the eventfromClient-trueif the event originated from the client sidelayerId- the identifier of the layer the error is related tomessage- the error messagecode- the error code, if applicable
-
-
Method Details
-
getCode
public int getCode()Error code (if applicable).- Returns:
- the code
-
getMessage
Error message.- Returns:
- the message
-
toString
- Overrides:
toStringin classLeafletEvent
-