public enum PlatformType extends Enum<PlatformType>
Enum Constant and Description |
---|
DESKTOP |
MOBILE_LANDSCAPE |
MOBILE_PORTRAIT |
TABLET_LANDSCAPE |
TABLET_PORTRAIT |
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
String |
getId()
This maps to the channel passed as parameter to the rendering engine: mgnlChannel.
|
int |
getWidth() |
String |
toString() |
static PlatformType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlatformType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlatformType DESKTOP
public static final PlatformType TABLET_LANDSCAPE
public static final PlatformType TABLET_PORTRAIT
public static final PlatformType MOBILE_LANDSCAPE
public static final PlatformType MOBILE_PORTRAIT
public static PlatformType[] values()
for (PlatformType c : PlatformType.values()) System.out.println(c);
public static PlatformType 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 String toString()
toString
in class Enum<PlatformType>
public String getId()
public int getWidth()
public int getHeight()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.