|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.provider.v2.render.DeviceInfo.DeviceOrientation
public static class DeviceInfo.DeviceOrientation
To level nested class representing the enumerated types used to represent data members of deviceInfos. This class represents the orientation of the device.
Field Summary | |
---|---|
static int |
LANDSCAPE
|
static DeviceInfo.DeviceOrientation |
ORIENTATION_LANDSCAPE
|
static DeviceInfo.DeviceOrientation |
ORIENTATION_PORTRAIT
|
static DeviceInfo.DeviceOrientation |
ORIENTATION_UNKNOWN
|
static int |
PORTRAIT
|
static int |
UNKNOWN
|
Constructor Summary | |
---|---|
DeviceInfo.DeviceOrientation(int orientation)
Constructor. |
|
DeviceInfo.DeviceOrientation(java.lang.String orientation)
Constructor -- object representing device orientation based on String. |
Method Summary | |
---|---|
static DeviceInfo.DeviceOrientation |
getDeviceOrientation(java.lang.String orientation)
|
int |
getValue()
|
static boolean |
isLandscape(DeviceInfo.DeviceOrientation type)
|
static boolean |
isOrientationKnown(DeviceInfo.DeviceOrientation type)
|
static boolean |
isPortrait(DeviceInfo.DeviceOrientation type)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN
public static final int LANDSCAPE
public static final int PORTRAIT
public static final DeviceInfo.DeviceOrientation ORIENTATION_UNKNOWN
public static final DeviceInfo.DeviceOrientation ORIENTATION_LANDSCAPE
public static final DeviceInfo.DeviceOrientation ORIENTATION_PORTRAIT
Constructor Detail |
---|
public DeviceInfo.DeviceOrientation(java.lang.String orientation)
orientation
- String representing the device's orientation.
Value is either "landscape" or "portrait". Case doesn't matter.public DeviceInfo.DeviceOrientation(int orientation)
orientation
- the device's orientation.Method Detail |
---|
public static boolean isLandscape(DeviceInfo.DeviceOrientation type)
public static boolean isPortrait(DeviceInfo.DeviceOrientation type)
public static boolean isOrientationKnown(DeviceInfo.DeviceOrientation type)
public static DeviceInfo.DeviceOrientation getDeviceOrientation(java.lang.String orientation)
orientation
- String representing the device's orientation.
Value is either "landscape" or "portrait". Case doesn't matter.
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |