Enum Class MouseEvent.Type

java.lang.Object
java.lang.Enum<MouseEvent.Type>
org.jline.terminal.MouseEvent.Type
All Implemented Interfaces:
Serializable, Comparable<MouseEvent.Type>, Constable
Enclosing class:
MouseEvent

public static enum MouseEvent.Type extends Enum<MouseEvent.Type>
Defines the types of mouse events that can occur.
  • Enum Constant Details

    • Released

      public static final MouseEvent.Type Released
      A mouse button was released.
    • Pressed

      public static final MouseEvent.Type Pressed
      A mouse button was pressed.
    • Wheel

      public static final MouseEvent.Type Wheel
      The mouse wheel was scrolled.
    • Moved

      public static final MouseEvent.Type Moved
      The mouse was moved without any buttons pressed.
    • Dragged

      public static final MouseEvent.Type Dragged
      The mouse was moved with a button pressed (drag operation).
  • Method Details

    • values

      public static MouseEvent.Type[] 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 MouseEvent.Type 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