Enum MobilePageShowInOption
- java.lang.Object
-
- java.lang.Enum<MobilePageShowInOption>
-
- org.cyclos.model.contentmanagement.mobilepages.MobilePageShowInOption
-
- All Implemented Interfaces:
Serializable,Comparable<MobilePageShowInOption>,HasMessageKey
public enum MobilePageShowInOption extends Enum<MobilePageShowInOption> implements HasMessageKey
Show option for mobile pages
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOBILE_APPMOBILE_APP_AND_MOBILE_POSMOBILE_POS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanshouldShowFor(boolean isPos)static MobilePageShowInOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static MobilePageShowInOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOBILE_APP_AND_MOBILE_POS
public static final MobilePageShowInOption MOBILE_APP_AND_MOBILE_POS
-
MOBILE_APP
public static final MobilePageShowInOption MOBILE_APP
-
MOBILE_POS
public static final MobilePageShowInOption MOBILE_POS
-
-
Method Detail
-
values
public static MobilePageShowInOption[] 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 (MobilePageShowInOption c : MobilePageShowInOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MobilePageShowInOption 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
shouldShowFor
public boolean shouldShowFor(boolean isPos)
-
-