Package org.jline.terminal
Enum MouseEvent.Button
- java.lang.Object
-
- java.lang.Enum<MouseEvent.Button>
-
- org.jline.terminal.MouseEvent.Button
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MouseEvent.Button>
- Enclosing class:
- MouseEvent
public static enum MouseEvent.Button extends java.lang.Enum<MouseEvent.Button>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MouseEvent.Button
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MouseEvent.Button[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NoButton
public static final MouseEvent.Button NoButton
-
Button1
public static final MouseEvent.Button Button1
-
Button2
public static final MouseEvent.Button Button2
-
Button3
public static final MouseEvent.Button Button3
-
WheelUp
public static final MouseEvent.Button WheelUp
-
WheelDown
public static final MouseEvent.Button WheelDown
-
-
Method Detail
-
values
public static MouseEvent.Button[] 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.Button c : MouseEvent.Button.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.Button 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
-
-