public enum IconSize extends Enum<IconSize>
Modifier and Type | Method and Description |
---|---|
static IconSize |
getIconSize(String name)
Finds the most appropriate icon size for a particular configuration value.
|
int |
getSize() |
String |
toString() |
static IconSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IconSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IconSize S
public static final IconSize M
public static final IconSize L
public static final IconSize XL
public static IconSize[] values()
for (IconSize c : IconSize.values()) System.out.println(c);
public static IconSize valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IconSize getIconSize(String name)
name
- a symbolic icon size name (case insensitive) or an integer size value.public int getSize()
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.