Package org.jline.terminal
Enum MouseEvent.Type
- java.lang.Object
-
- java.lang.Enum<MouseEvent.Type>
-
- org.jline.terminal.MouseEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MouseEvent.Type>
- Enclosing class:
- MouseEvent
public static enum MouseEvent.Type extends java.lang.Enum<MouseEvent.Type>
Defines the types of mouse events that can occur.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MouseEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MouseEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static MouseEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MouseEvent.Type c : MouseEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MouseEvent.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-