Package com.jgoodies.forms.util
Enum FocusTraversalType
- java.lang.Object
-
- java.lang.Enum<FocusTraversalType>
-
- com.jgoodies.forms.util.FocusTraversalType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FocusTraversalType>
public enum FocusTraversalType extends java.lang.Enum<FocusTraversalType>
An abstraction for frequently used focus traversal policy types. Used by theListViewBuilder
andFormBuilder
.- Since:
- 1.9
- Version:
- $Revision: 1.2 $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINER_ORDER
A focus traversal type that shall be turned into a focus traversal policy that is based on the container order, for exampleContainerOrderFocusTraversalPolicy
orJGContainerOrderFocusTraversalPolicy
.LAYOUT
A focus traversal type that shall be turned into a focus traversal policy that is based on the layout, for exampleLayoutFocusTraversalPolicy
orJGLayoutFocusTraversalPolicy
.
-
Constructor Summary
Constructors Modifier Constructor Description private
FocusTraversalType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FocusTraversalType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FocusTraversalType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAYOUT
public static final FocusTraversalType LAYOUT
A focus traversal type that shall be turned into a focus traversal policy that is based on the layout, for exampleLayoutFocusTraversalPolicy
orJGLayoutFocusTraversalPolicy
.
-
CONTAINER_ORDER
public static final FocusTraversalType CONTAINER_ORDER
A focus traversal type that shall be turned into a focus traversal policy that is based on the container order, for exampleContainerOrderFocusTraversalPolicy
orJGContainerOrderFocusTraversalPolicy
.
-
-
Method Detail
-
values
public static FocusTraversalType[] 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 (FocusTraversalType c : FocusTraversalType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FocusTraversalType 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
-
-