public enum Orientation extends Enum<Orientation>
Enum Constant and Description |
---|
DEFAULT |
LANDSCAPE |
LANDSCAPE_PRIMARY |
LANDSCAPE_SECONDARY |
PORTRAIT |
PORTRAIT_PRIMARY |
PORTRAIT_SECONDARY |
Modifier and Type | Method and Description |
---|---|
String |
css() |
static Orientation |
get(String propertyName) |
static Orientation |
getDefault() |
abstract boolean |
isLandscape() |
abstract boolean |
isPortrait() |
abstract boolean |
isPrimary() |
abstract boolean |
isSecondary() |
static Orientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Orientation DEFAULT
public static final Orientation PORTRAIT
public static final Orientation LANDSCAPE
public static final Orientation PORTRAIT_PRIMARY
public static final Orientation PORTRAIT_SECONDARY
public static final Orientation LANDSCAPE_PRIMARY
public static final Orientation LANDSCAPE_SECONDARY
public static Orientation[] values()
for (Orientation c : Orientation.values()) System.out.println(c);
public static Orientation 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 static Orientation getDefault()
public String css()
public abstract boolean isPortrait()
public abstract boolean isLandscape()
public abstract boolean isPrimary()
public abstract boolean isSecondary()
public static Orientation get(String propertyName)
Copyright © 2018 Xalys. All rights reserved.