Serializable
, Comparable<FocusEvent.Cause>
public static enum FocusEvent.Cause extends Enum<FocusEvent.Cause>
FocusEvent
- the reason why it
occurred. Possible reasons include mouse events, keyboard focus
traversal, window activation.
If no cause is provided then the reason is UNKNOWN
.Enum Constant and Description |
---|
ACTIVATION
An activation of a toplevel window.
|
CLEAR_GLOBAL_FOCUS_OWNER
Clearing global focus owner.
|
MOUSE_EVENT
An activating mouse event.
|
ROLLBACK
Restoring focus after a focus request has been rejected.
|
TRAVERSAL
A focus traversal action with unspecified direction.
|
TRAVERSAL_BACKWARD
A backward focus traversal action.
|
TRAVERSAL_DOWN
A down-cycle focus traversal action.
|
TRAVERSAL_FORWARD
A forward focus traversal action.
|
TRAVERSAL_UP
An up-cycle focus traversal action.
|
UNEXPECTED
A system action causing an unexpected focus change.
|
UNKNOWN
The default value.
|
Modifier and Type | Method and Description |
---|---|
static FocusEvent.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FocusEvent.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FocusEvent.Cause ACTIVATION
public static final FocusEvent.Cause CLEAR_GLOBAL_FOCUS_OWNER
public static final FocusEvent.Cause MOUSE_EVENT
public static final FocusEvent.Cause ROLLBACK
public static final FocusEvent.Cause TRAVERSAL
public static final FocusEvent.Cause TRAVERSAL_BACKWARD
public static final FocusEvent.Cause TRAVERSAL_DOWN
public static final FocusEvent.Cause TRAVERSAL_FORWARD
public static final FocusEvent.Cause TRAVERSAL_UP
public static final FocusEvent.Cause UNEXPECTED
public static final FocusEvent.Cause UNKNOWN
public static FocusEvent.Cause[] values()
for (FocusEvent.Cause c : FocusEvent.Cause.values()) System.out.println(c);
public static FocusEvent.Cause valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-08-31-194618.buildd.src