Enum Interactable.FocusChangeDirection

java.lang.Object
java.lang.Enum<Interactable.FocusChangeDirection>
com.googlecode.lanterna.gui2.Interactable.FocusChangeDirection
All Implemented Interfaces:
Serializable, Comparable<Interactable.FocusChangeDirection>, java.lang.constant.Constable
Enclosing interface:
Interactable

public static enum Interactable.FocusChangeDirection extends Enum<Interactable.FocusChangeDirection>
When focus has changed, which direction.
  • Enum Constant Details

    • DOWN

      public static final Interactable.FocusChangeDirection DOWN
      The next interactable component, going down. This direction usually comes from the user pressing down array.
    • UP

      public static final Interactable.FocusChangeDirection UP
      The next interactable component, going up. This direction usually comes from the user pressing up array.
    • LEFT

      public static final Interactable.FocusChangeDirection LEFT
      The next interactable component, going left. This direction usually comes from the user pressing left array.
    • NEXT

      public static final Interactable.FocusChangeDirection NEXT
      The next interactable component, in layout manager order (usually left->right, up->down). This direction usually comes from the user pressing tab key.
    • PREVIOUS

      public static final Interactable.FocusChangeDirection PREVIOUS
      The previous interactable component, reversed layout manager order (usually right->left, down->up). This direction usually comes from the user pressing shift and tab key (reverse tab).
    • TELEPORT

      public static final Interactable.FocusChangeDirection TELEPORT
      Focus was changed by calling the RootContainer.setFocusedInteractable(..) method directly.
    • RESET

      public static final Interactable.FocusChangeDirection RESET
      Focus has gone away and no component is now in focus
  • Constructor Details

    • FocusChangeDirection

      private FocusChangeDirection()
  • Method Details

    • values

      public static Interactable.FocusChangeDirection[] 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 Interactable.FocusChangeDirection 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