| Enum Constant and Description |
|---|
AFTER
Add an element after a named element (relative positioning).
|
BEFORE
Add an element before another named element (relative positioning).
|
FIRST
Add an element at the beginning of a list (absolute positioning).
|
INDEX
Add an element at a specific index (absolute positioning).
|
LAST
Add an element to the end of a list (absolute positioning).
|
| Modifier and Type | Method and Description |
|---|---|
static Position |
find(java.lang.String positionInfo)
Find the
Position enum value used in the given positioning
string. |
static Position |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Position LAST
public static final Position FIRST
public static final Position BEFORE
public static final Position AFTER
public static final Position INDEX
public static Position[] values()
for (Position c : Position.values()) System.out.println(c);
public static Position valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static final Position find(java.lang.String positionInfo)
Position enum value used in the given positioning
string.positionInfo - the positioning string (can be null, which would
result in null)Position which is mentioned in the positioning
string, or null if none can be found