Enum Class DragEventType
java.lang.Object
java.lang.Enum<DragEventType>
org.vaadin.addons.componentfactory.leaflet.layer.events.types.DragEventType
- All Implemented Interfaces:
Serializable,Comparable<DragEventType>,Constable,LeafletEventType
Enumeration of the Leaflet event types related to dragging and moving a marker or layer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFired repeatedly while the user drags the marker.Fired when the user stops dragging the marker.Fired when the user starts dragging the marker.Fired when the marker is moved via setLatLng or by dragging.Fired when the marker stops moving (because of dragging).Fired when the marker starts moving (because of dragging). -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the corresponding Leaflet event.static DragEventTypeReturns the enum constant of this class with the specified name.static DragEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.types.LeafletEventType
name
-
Enum Constant Details
-
move
Fired when the marker is moved via setLatLng or by dragging. Old and new coordinates are included in event arguments as oldLatLng, latlng. -
dragstart
Fired when the user starts dragging the marker. -
movestart
Fired when the marker starts moving (because of dragging). -
drag
Fired repeatedly while the user drags the marker. -
dragend
Fired when the user stops dragging the marker. -
moveend
Fired when the marker stops moving (because of dragging).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getLeafletEvent
Returns the name of the corresponding Leaflet event.- Specified by:
getLeafletEventin interfaceLeafletEventType- Returns:
- the Leaflet event name
-