Enum MenuGroupPosition
- java.lang.Object
-
- java.lang.Enum<MenuGroupPosition>
-
- org.cyclos.model.contentmanagement.contentitems.MenuGroupPosition
-
- All Implemented Interfaces:
Serializable,Comparable<MenuGroupPosition>,HasMessageKey
public enum MenuGroupPosition extends Enum<MenuGroupPosition> implements HasMessageKey
Contains the possible positions for a menu group
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTHShown on both horizontal menu and homeHOMEShown only on homeHORIZONTAL_MENUShown only on the horizontal menu
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static MenuGroupPositionvalueOf(String name)Returns the enum constant of this type with the specified name.static MenuGroupPosition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOTH
public static final MenuGroupPosition BOTH
Shown on both horizontal menu and home
-
HORIZONTAL_MENU
public static final MenuGroupPosition HORIZONTAL_MENU
Shown only on the horizontal menu
-
HOME
public static final MenuGroupPosition HOME
Shown only on home
-
-
Method Detail
-
values
public static MenuGroupPosition[] 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 (MenuGroupPosition c : MenuGroupPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuGroupPosition 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
-
-