Package io.nevernull.mobileui
Enum DisplayService.Orientation
- java.lang.Object
-
- java.lang.Enum<DisplayService.Orientation>
-
- io.nevernull.mobileui.DisplayService.Orientation
-
- All Implemented Interfaces:
Serializable
,Comparable<DisplayService.Orientation>
- Enclosing interface:
- DisplayService
public static enum DisplayService.Orientation extends Enum<DisplayService.Orientation>
Enumeration describing the device's orientation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisplayService.Orientation
valueOf(String name)
Returns the enum constant of this type with the specified name.static DisplayService.Orientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
portrait
public static final DisplayService.Orientation portrait
Portrait orientation
-
landscape
public static final DisplayService.Orientation landscape
Landscape orientation
-
-
Method Detail
-
values
public static DisplayService.Orientation[] 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 (DisplayService.Orientation c : DisplayService.Orientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisplayService.Orientation 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 nameNullPointerException
- if the argument is null
-
-