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

public enum MouseEventType extends Enum<MouseEventType> implements LeafletEventType
Enumeration of the mouse related Leaflet event names, such as click, mousedown and contextmenu.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Fired when the user clicks (or taps) the layer.
    Fired when the user right-clicks on the layer, prevents default browser context menu from showing if there are listeners on this event.
    Fired when the user double-clicks (or double-taps) the layer.
    Fired when the user pushes the mouse button on the layer.
    Fired while the mouse moves over the layer.
    Fired when the mouse leaves the layer.
    Fired when the mouse enters the layer.
    Fired when the user releases the mouse button pushed on the layer.
    Fired before mouse click on the map (sometimes useful when you want something to happen on click before any existing click handlers start running).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.types.LeafletEventType

    getLeafletEvent, name
  • Enum Constant Details

    • click

      public static final MouseEventType click
      Fired when the user clicks (or taps) the layer.
    • dblclick

      public static final MouseEventType dblclick
      Fired when the user double-clicks (or double-taps) the layer.
    • mousedown

      public static final MouseEventType mousedown
      Fired when the user pushes the mouse button on the layer.
    • mouseup

      public static final MouseEventType mouseup
      Fired when the user releases the mouse button pushed on the layer.
    • mouseover

      public static final MouseEventType mouseover
      Fired when the mouse enters the layer.
    • mouseout

      public static final MouseEventType mouseout
      Fired when the mouse leaves the layer.
    • mousemove

      public static final MouseEventType mousemove
      Fired while the mouse moves over the layer.
    • contextmenu

      public static final MouseEventType contextmenu
      Fired when the user right-clicks on the layer, prevents default browser context menu from showing if there are listeners on this event. Also fired on mobile when the user holds a single touch for a second (also called long press).
    • preclick

      public static final MouseEventType preclick
      Fired before mouse click on the map (sometimes useful when you want something to happen on click before any existing click handlers start running).
  • Method Details

    • values

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