Package org.jline.terminal
Enum Class MouseEvent.Button
- All Implemented Interfaces:
Serializable
,Comparable<MouseEvent.Button>
,Constable
- Enclosing class:
MouseEvent
Defines the mouse buttons that can be involved in a mouse event.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe primary mouse button (usually the left button).The middle mouse button.The secondary mouse button (usually the right button).No specific button is involved (used for move events).The mouse wheel was scrolled downward.The mouse wheel was scrolled upward. -
Method Summary
Modifier and TypeMethodDescriptionstatic MouseEvent.Button
Returns the enum constant of this class with the specified name.static MouseEvent.Button[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NoButton
No specific button is involved (used for move events). -
Button1
The primary mouse button (usually the left button). -
Button2
The middle mouse button. -
Button3
The secondary mouse button (usually the right button). -
WheelUp
The mouse wheel was scrolled upward. -
WheelDown
The mouse wheel was scrolled downward.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-