Enum Class TransferFocusOnEnter

java.lang.Object
java.lang.Enum<TransferFocusOnEnter>
is.codion.swing.common.ui.key.TransferFocusOnEnter
All Implemented Interfaces:
Serializable, Comparable<TransferFocusOnEnter>, Constable

public enum TransferFocusOnEnter extends Enum<TransferFocusOnEnter>
A utility enum for enabled focus traversal based on the Enter key.
  • Enum Constant Details

  • Method Details

    • values

      public static TransferFocusOnEnter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransferFocusOnEnter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • enable

      public abstract void enable(JComponent... components)
      Parameters:
      components - the components for which to enable focus transfer on enter