info.magnolia.ui.vaadin.editor.gwt.shared
Enum PlatformType

java.lang.Object
  extended by java.lang.Enum<PlatformType>
      extended by 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.


Enum Constant Summary
DESKTOP
           
MOBILE
           
TABLET
           
 
Method Summary
 String getId()
           
 String getStyleName(boolean isPortrait)
           
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DESKTOP

public static final PlatformType DESKTOP

TABLET

public static final PlatformType TABLET

MOBILE

public static final PlatformType MOBILE
Method Detail

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.