Package org.opencms.ade.galleries.shared
Enum CmsResourceTypeBean.TypeVisibility
- java.lang.Object
-
- java.lang.Enum<CmsResourceTypeBean.TypeVisibility>
-
- org.opencms.ade.galleries.shared.CmsResourceTypeBean.TypeVisibility
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsResourceTypeBean.TypeVisibility>
- Enclosing class:
- CmsResourceTypeBean
public static enum CmsResourceTypeBean.TypeVisibility extends java.lang.Enum<CmsResourceTypeBean.TypeVisibility>
Enum representing the visibility of a resource type in the bean.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description hidden
Never displayed.showAlways
Always show the type.showOptional
The user may choose to display the type, but it's not shown by default.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsResourceTypeBean.TypeVisibility
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsResourceTypeBean.TypeVisibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
hidden
public static final CmsResourceTypeBean.TypeVisibility hidden
Never displayed.
-
showAlways
public static final CmsResourceTypeBean.TypeVisibility showAlways
Always show the type.
-
showOptional
public static final CmsResourceTypeBean.TypeVisibility showOptional
The user may choose to display the type, but it's not shown by default.
-
-
Method Detail
-
values
public static CmsResourceTypeBean.TypeVisibility[] 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 (CmsResourceTypeBean.TypeVisibility c : CmsResourceTypeBean.TypeVisibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsResourceTypeBean.TypeVisibility 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
-
-