public enum EventSource extends Enum<EventSource>
Enum Constant and Description |
---|
KEYBOARD
The source was a keyboard event, e.g. a key press.
|
MOUSE
The source was a mouse event, e.g. a click.
|
STYLUS
The source was a stylus (pen) event, e.g. a press while a button was held.
|
TOUCH
The source was a touch event, e.g. a tap.
|
UNKNOWN
The source for the event is unknown or could not be determined.
|
Modifier and Type | Method and Description |
---|---|
static EventSource |
fromOrdinal(int ordinal) |
int |
value() |
static EventSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventSource KEYBOARD
public static final EventSource MOUSE
public static final EventSource STYLUS
public static final EventSource TOUCH
public static final EventSource UNKNOWN
public static final EventSource fromOrdinal(int ordinal)
public int value()
public static EventSource valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static EventSource[] values()
for (EventSource c : EventSource.values()) System.out.println(c);