public enum CmsDisplayType extends java.lang.Enum<CmsDisplayType>
| Enum Constant and Description |
|---|
medium
Medium.
|
small
Small.
|
wide
Wide.
|
| Modifier and Type | Method and Description |
|---|---|
static CmsDisplayType |
getDisplayType(int width)
Gets the display type corresponding to a given width.
|
int |
minWidth()
Gets the minimum window width for this size.
|
static CmsDisplayType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CmsDisplayType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CmsDisplayType wide
public static final CmsDisplayType medium
public static final CmsDisplayType small
public static CmsDisplayType[] values()
for (CmsDisplayType c : CmsDisplayType.values()) System.out.println(c);
public static CmsDisplayType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static CmsDisplayType getDisplayType(int width)
width - the window widthpublic int minWidth()