Enum FrontendContentLayout
- java.lang.Object
-
- java.lang.Enum<FrontendContentLayout>
-
- org.cyclos.model.contentmanagement.contentitems.FrontendContentLayout
-
- All Implemented Interfaces:
Serializable,Comparable<FrontendContentLayout>,HasMessageKey
public enum FrontendContentLayout extends Enum<FrontendContentLayout> implements HasMessageKey
Possible layouts for custom content in the new frontend
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CARDThe content is shown in a card with regular paddingCARD_TIGHTThe content is shown in a card with no paddingFULLThe content uses the full available space
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static FrontendContentLayoutvalueOf(String name)Returns the enum constant of this type with the specified name.static FrontendContentLayout[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL
public static final FrontendContentLayout FULL
The content uses the full available space
-
CARD
public static final FrontendContentLayout CARD
The content is shown in a card with regular padding
-
CARD_TIGHT
public static final FrontendContentLayout CARD_TIGHT
The content is shown in a card with no padding
-
-
Method Detail
-
values
public static FrontendContentLayout[] 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 (FrontendContentLayout c : FrontendContentLayout.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FrontendContentLayout 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
-
-