Enum Class SyKeyboardFocusBehavior
- All Implemented Interfaces:
Serializable, Comparable<SyKeyboardFocusBehavior>, Constable
A specification of how keyboard focus may traverse a component.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe component cannot directly receive focus, but will pass focus to its children if the focus traversal is continued.The component cannot directly receive focus, and will not pass focus to its children if the focus traversal is continued.The component can directly receive focus, and will pass focus to its children if the focus traversal is continued.The component can directly receive focus, but will not pass focus to its children if the focus traversal is continued. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic SyKeyboardFocusBehaviorReturns the enum constant of this class with the specified name.static SyKeyboardFocusBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RECEIVES_FOCUS_AND_CONTINUES_TRAVERSAL
The component can directly receive focus, and will pass focus to its children if the focus traversal is continued. -
RECEIVES_FOCUS_AND_STOPS_TRAVERSAL
The component can directly receive focus, but will not pass focus to its children if the focus traversal is continued. -
IGNORES_FOCUS_AND_CONTINUES_TRAVERSAL
The component cannot directly receive focus, but will pass focus to its children if the focus traversal is continued. -
IGNORES_FOCUS_AND_STOPS_TRAVERSAL
The component cannot directly receive focus, and will not pass focus to its children if the focus traversal is continued.
-
-
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
-
receivesFocus
public boolean receivesFocus()- Returns:
trueif this behavior implies that a component will receive focus
-
continuesFocusTraversal
public boolean continuesFocusTraversal()- Returns:
trueif this behavior implies that a component will pass focus to its children
-