Enum MouseEvent.Type

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

public static enum MouseEvent.Type extends Enum<MouseEvent.Type>
The type of mouse event.
  • Enum Constant Details

    • PRESS

      public static final MouseEvent.Type PRESS
      A button was pressed.
    • RELEASE

      public static final MouseEvent.Type RELEASE
      A button was released.
    • DRAG

      public static final MouseEvent.Type DRAG
      The mouse was moved while a button was held (drag).
    • MOVE

      public static final MouseEvent.Type MOVE
      The mouse was moved with no button held (hover).
    • SCROLL

      public static final MouseEvent.Type SCROLL
      The scroll wheel was used.
  • Method Details

    • values

      public static MouseEvent.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MouseEvent.Type valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null