Enum FocusCause

java.lang.Object
java.lang.Enum<FocusCause>
com.sun.javafx.tk.FocusCause
All Implemented Interfaces:
Serializable, Comparable<FocusCause>

public enum FocusCause extends Enum<FocusCause>
Enum to distinguish how the stage peer received or lost focus.
See Also:
  • Enum Constant Details

    • TRAVERSED_FORWARD

      public static final FocusCause TRAVERSED_FORWARD
      An (embedded) stage is activated as a result of forward focus traversal. The first focusable node should gain input focus.
    • TRAVERSED_BACKWARD

      public static final FocusCause TRAVERSED_BACKWARD
      An (embedded) stage is activated as a result of backward focus traversal. The last focusable node should gain input focus.
    • ACTIVATED

      public static final FocusCause ACTIVATED
      A (top-level or embedded) stage is activated for some other reason.
    • DEACTIVATED

      public static final FocusCause DEACTIVATED
      A (top-level or embedded) stage is deactivated.
  • Method Details

    • values

      public static FocusCause[] 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

      public static FocusCause valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null