info.magnolia.ui.vaadin.editor.gwt.shared
Enum PlatformType
java.lang.Object
java.lang.Enum<PlatformType>
info.magnolia.ui.vaadin.editor.gwt.shared.PlatformType
- All Implemented Interfaces:
- Serializable, Comparable<PlatformType>
public enum PlatformType
- extends Enum<PlatformType>
Enumerates the platforms available for preview in page editor. Provides their display names and
attribute values to be used in the url.
DESKTOP
public static final PlatformType DESKTOP
TABLET
public static final PlatformType TABLET
MOBILE
public static final PlatformType MOBILE
values
public static PlatformType[] 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 (PlatformType c : PlatformType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PlatformType 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 name
NullPointerException
- if the argument is null
getStyleName
public String getStyleName(boolean isPortrait)
toString
public String toString()
- Overrides:
toString
in class Enum<PlatformType>
getId
public String getId()
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.