Module com.googlecode.lanterna
Package com.googlecode.lanterna.gui2
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe next interactable component, going down.The next interactable component, going left.The next interactable component, in layout manager order (usually left->right, up->down).The previous interactable component, reversed layout manager order (usually right->left, down->up).Focus has gone away and no component is now in focusThe next interactable component, going right.Focus was changed by calling theRootContainer.setFocusedInteractable(..)
method directly.The next interactable component, going up. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Enum Constant Details
-
DOWN
The next interactable component, going down. This direction usually comes from the user pressing down array. -
RIGHT
The next interactable component, going right. This direction usually comes from the user pressing right array. -
UP
The next interactable component, going up. This direction usually comes from the user pressing up array. -
LEFT
The next interactable component, going left. This direction usually comes from the user pressing left array. -
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
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
Focus was changed by calling theRootContainer.setFocusedInteractable(..)
method directly. -
RESET
Focus has gone away and no component is now in focus
-
-
Constructor Details
-
FocusChangeDirection
private FocusChangeDirection()
-
-
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
-