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:
java.io.Serializable
,java.lang.Comparable<Interactable.FocusChangeDirection>
- Enclosing interface:
- Interactable
public static enum Interactable.FocusChangeDirection extends java.lang.Enum<Interactable.FocusChangeDirection>
When focus has changed, which direction.
-
-
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 focusRIGHT
The next interactable component, going right.TELEPORT
Focus was changed by calling theRootContainer.setFocusedInteractable(..)
method directly.UP
The next interactable component, going up.
-
Constructor Summary
Constructors Modifier Constructor Description private
FocusChangeDirection()
-
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.
-
-
-
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 theRootContainer.setFocusedInteractable(..)
method directly.
-
RESET
public static final Interactable.FocusChangeDirection RESET
Focus has gone away and no component is now in focus
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-