Package com.simsilica.lemur.focus
Enum Class FocusTraversal.TraversalDirection
java.lang.Object
java.lang.Enum<FocusTraversal.TraversalDirection>
com.simsilica.lemur.focus.FocusTraversal.TraversalDirection
- All Implemented Interfaces:
Serializable
,Comparable<FocusTraversal.TraversalDirection>
,Constable
- Enclosing interface:
FocusTraversal
public static enum FocusTraversal.TraversalDirection
extends Enum<FocusTraversal.TraversalDirection>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor containers that provide row/column navigation, this represents the next row in a similar column as defined by the layout/navigation implementation.For containers that provide row/column nagivation, this represents the last element in the current row or column, depending on if the UI is row-oriented or column oriented.For containers that provide row/column nagivation, this represents the first element in the current row or column, depending on if the UI is row-oriented or column oriented.For containers that provide row/column navigation, this represents the previous column in a similar row as defined by the layout/navigation implementation.Represents the next logical navigation step in a focus traversal workflow.Represents the last element in this focus container.Represents the first element in this focus container.Represents the previous logical navigation step in a focus traversal workflow.For containers that provide row/column navigation, this represents the next column in a similar row as defined by the layout/navigation implementation.For containers that provide row/column navigation, this represents the previous row in a similar column as defined by the layout/navigation implementation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FocusTraversal.TraversalDirection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Up
For containers that provide row/column navigation, this represents the previous row in a similar column as defined by the layout/navigation implementation. In many layouts, this will be synonymous with TraversalDirection.Previous. It is up to the specific focus layout how wrapping is handled. -
Down
For containers that provide row/column navigation, this represents the next row in a similar column as defined by the layout/navigation implementation. In many layouts, this will be synonymous with TraversalDirection.Next. It is up to the specific focus layout how wrapping is handled. -
Left
For containers that provide row/column navigation, this represents the previous column in a similar row as defined by the layout/navigation implementation. In many layouts, this will be synonymous with TraversalDirection.Previous. It is up to the specific focus layout how wrapping is handled. -
Right
For containers that provide row/column navigation, this represents the next column in a similar row as defined by the layout/navigation implementation. In many layouts, this will be synonymous with TraversalDirection.Next. It is up to the specific focus layout how wrapping is handled. -
Next
Represents the next logical navigation step in a focus traversal workflow. In general, using TraversalDirection.Next should be able to take you through all focusable elements in a container, from TraversalDirection.PageHome to TraversalDirection.PageEnd. It is also typical that in a root-level container, Next should wrap to PageHome when reaching the end. It is not required. -
Previous
Represents the previous logical navigation step in a focus traversal workflow. In general, using TraversalDirection.Previous should be able to take you through all focusable elements in a container, from TraversalDirection.PageEnd to TraversalDirection.PageHome. It is also typical that in a root-level container, Previous should wrap to PageEnd when on the first/home element. It is not required. -
Home
For containers that provide row/column nagivation, this represents the first element in the current row or column, depending on if the UI is row-oriented or column oriented. Otherwise this is the same as TraversalDirection.PageHome. -
End
For containers that provide row/column nagivation, this represents the last element in the current row or column, depending on if the UI is row-oriented or column oriented. Otherwise this is the same as TraversalDirection.PageHome. -
PageHome
Represents the first element in this focus container. -
PageEnd
Represents the last element in this focus container.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-