Package com.sun.javafx.tk
Enum FocusCause
- All Implemented Interfaces:
Serializable
,Comparable<FocusCause>
Enum to distinguish how the stage peer received or lost focus.
-
Enum Constant Summary
Enum ConstantDescriptionA (top-level or embedded) stage is activated for some other reason.A (top-level or embedded) stage is deactivated.An (embedded) stage is activated as a result of backward focus traversal.An (embedded) stage is activated as a result of forward focus traversal. -
Method Summary
Modifier and TypeMethodDescriptionstatic FocusCause
Returns the enum constant of this type with the specified name.static FocusCause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRAVERSED_FORWARD
An (embedded) stage is activated as a result of forward focus traversal. The first focusable node should gain input focus. -
TRAVERSED_BACKWARD
An (embedded) stage is activated as a result of backward focus traversal. The last focusable node should gain input focus. -
ACTIVATED
A (top-level or embedded) stage is activated for some other reason. -
DEACTIVATED
A (top-level or embedded) stage is deactivated.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-