Package org.hippoecm.frontend.service
Enum Class IconSize
- All Implemented Interfaces:
Serializable
,Comparable<IconSize>
,Constable
Icon types (sizes) used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IconSize
getIconSize
(String name) Finds the most appropriate icon size for a particular configuration value.int
getSize()
toString()
static IconSize
Returns the enum constant of this class with the specified name.static IconSize[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
S
-
M
-
L
-
XL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIconSize
Finds the most appropriate icon size for a particular configuration value. The symbolic names (s, m, l and xl) are preferred.- Parameters:
name
- a symbolic icon size name (case insensitive) or an integer size value.- Returns:
- the most appropriate icon size: either the exact matching one, or the first icon size that is equal to or bigger than the given integer size.
-
getSize
public int getSize() -
toString
-