java.lang.Object
java.lang.Enum<DragEventType>
org.vaadin.addons.componentfactory.leaflet.layer.events.types.DragEventType
All Implemented Interfaces:
Serializable, Comparable<DragEventType>, Constable, LeafletEventType

public enum DragEventType extends Enum<DragEventType> implements LeafletEventType
Enumeration of the Leaflet event types related to dragging and moving a marker or layer.
  • Enum Constant Details

    • move

      public static final DragEventType 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

      public static final DragEventType dragstart
      Fired when the user starts dragging the marker.
    • movestart

      public static final DragEventType movestart
      Fired when the marker starts moving (because of dragging).
    • drag

      public static final DragEventType drag
      Fired repeatedly while the user drags the marker.
    • dragend

      public static final DragEventType dragend
      Fired when the user stops dragging the marker.
    • moveend

      public static final DragEventType moveend
      Fired when the marker stops moving (because of dragging).
  • Method Details

    • values

      public static DragEventType[] 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

      public static DragEventType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getLeafletEvent

      public String getLeafletEvent()
      Returns the name of the corresponding Leaflet event.
      Specified by:
      getLeafletEvent in interface LeafletEventType
      Returns:
      the Leaflet event name