Enum Interactable.FocusChangeDirection

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DOWN
      The next interactable component, going down.
      LEFT
      The next interactable component, going left.
      NEXT
      The next interactable component, in layout manager order (usually left->right, up->down).
      PREVIOUS
      The previous interactable component, reversed layout manager order (usually right->left, down->up).
      RESET
      Focus has gone away and no component is now in focus
      RIGHT
      The next interactable component, going right.
      TELEPORT
      Focus was changed by calling the RootContainer.setFocusedInteractable(..) method directly.
      UP
      The next interactable component, going up.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Interactable.FocusChangeDirection valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Interactable.FocusChangeDirection[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • DOWN

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

        public static final Interactable.FocusChangeDirection RIGHT
        The next interactable component, going right. This direction usually comes from the user pressing right 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.
    • Constructor Detail

      • FocusChangeDirection

        private FocusChangeDirection()
    • Method Detail

      • values

        public static Interactable.FocusChangeDirection[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Interactable.FocusChangeDirection c : Interactable.FocusChangeDirection.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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