- java.lang.Object
-
- java.lang.Enum<MoveComponent.Destination>
-
- org.omnifaces.component.util.MoveComponent.Destination
-
- All Implemented Interfaces:
Serializable
,Comparable<MoveComponent.Destination>
- Enclosing class:
- MoveComponent
public static enum MoveComponent.Destination extends Enum<MoveComponent.Destination>
Destination of component to be moved byMoveComponent
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_FIRST
Component is added as the first child of the target component, any other children will have their index increased by 1.ADD_LAST
Component is added as the last child of the target component, any other children will stay at their original location.AFTER
Component is moved right after target component, i.e. as a sibling with an index that's 1 position higher.BEFORE
Component is moved right before target component, i.e. as a sibling with an index that's 1 position lower.BEHAVIOR
A Behavior will be moved to the behavior section of the target component.FACET
Component will be moved to the facet section of the target component under the name denoted by "facet".
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MoveComponent.Destination
valueOf(String name)
Returns the enum constant of this type with the specified name.static MoveComponent.Destination[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE
public static final MoveComponent.Destination BEFORE
Component is moved right before target component, i.e. as a sibling with an index that's 1 position lower.
-
ADD_FIRST
public static final MoveComponent.Destination ADD_FIRST
Component is added as the first child of the target component, any other children will have their index increased by 1.
-
ADD_LAST
public static final MoveComponent.Destination ADD_LAST
Component is added as the last child of the target component, any other children will stay at their original location.
-
FACET
public static final MoveComponent.Destination FACET
Component will be moved to the facet section of the target component under the name denoted by "facet".
-
BEHAVIOR
public static final MoveComponent.Destination BEHAVIOR
A Behavior will be moved to the behavior section of the target component.
-
AFTER
public static final MoveComponent.Destination AFTER
Component is moved right after target component, i.e. as a sibling with an index that's 1 position higher.
-
-
Method Detail
-
values
public static MoveComponent.Destination[] 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 (MoveComponent.Destination c : MoveComponent.Destination.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MoveComponent.Destination 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 nameNullPointerException
- if the argument is null
-
-