org.wicketstuff.context
Enum Traversal
java.lang.Object
java.lang.Enum<Traversal>
org.wicketstuff.context.Traversal
- All Implemented Interfaces:
- Serializable, Comparable<Traversal>
public enum Traversal
- extends Enum<Traversal>
- Author:
- zruchala
Enum Constant Summary |
TOP_DOWN
The traversal is started from the page level then components and components' children until the
target is found or no more components left. |
UP
Bubble-up traversal. |
Method Summary |
static Traversal |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Traversal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
UP
public static final Traversal UP
- Bubble-up traversal. Only parents' components are being visited.
TOP_DOWN
public static final Traversal TOP_DOWN
- The traversal is started from the page level then components and components' children until the
target is found or no more components left.
values
public static Traversal[] 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 (Traversal c : Traversal.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Traversal valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2014–2018. All rights reserved.