Enum CmsCntPageData.ElementReuseMode
- java.lang.Object
-
- java.lang.Enum<CmsCntPageData.ElementReuseMode>
-
- org.opencms.ade.containerpage.shared.CmsCntPageData.ElementReuseMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsCntPageData.ElementReuseMode>
- Enclosing class:
- CmsCntPageData
public static enum CmsCntPageData.ElementReuseMode extends java.lang.Enum<CmsCntPageData.ElementReuseMode>
Enum representing the different ways dropping elements on a container page can be handled.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsCntPageData.ElementReuseMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsCntPageData.ElementReuseMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ask
public static final CmsCntPageData.ElementReuseMode ask
The user will be asked whether they want the 'copy' or 'reuse' behavior.
-
copy
public static final CmsCntPageData.ElementReuseMode copy
The dropped element will be copied, and the container page will link to the copy.
-
reuse
public static final CmsCntPageData.ElementReuseMode reuse
The container page will link to the dropped element.
-
-
Method Detail
-
values
public static CmsCntPageData.ElementReuseMode[] 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 (CmsCntPageData.ElementReuseMode c : CmsCntPageData.ElementReuseMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsCntPageData.ElementReuseMode 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
-
-