|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AndroidKeys>
io.selendroid.android.AndroidKeys
public enum AndroidKeys
Contains keys that can be sent to Android Native driver implementations of
org.openqa.selenium.WebElement#sendKeys. These keys are not easily represented as
strings, so an instance of this enum can be used instead. Each instance is a
CharSequence that is exactly one character long, and that character is a value in the
Unicode private use space.
For keys that are also in Keys, the key code in this class is the same.
| Enum Constant Summary | |
|---|---|
ALT_LEFT
|
|
ALT_RIGHT
|
|
BACK
|
|
DEL
|
|
DPAD_DOWN
|
|
DPAD_LEFT
|
|
DPAD_RIGHT
|
|
DPAD_UP
|
|
ENTER
|
|
F1
|
|
F10
|
|
F11
|
|
F12
|
|
F2
|
|
F3
|
|
F4
|
|
F5
|
|
F6
|
|
F7
|
|
F8
|
|
F9
|
|
HOME
|
|
MENU
|
|
SEARCH
|
|
SHIFT_LEFT
|
|
SHIFT_RIGHT
|
|
SYM
|
|
| Method Summary | |
|---|---|
char |
charAt(int index)
|
int |
getAndroidKeyCode()
Returns key's corresponding Android KeyEvent code. |
static boolean |
hasAndroidKeyEvent(char keyCode)
Returns true if key character is defined within AndroidKeys. |
static int |
keyCodeFor(char keyCode)
Returns a character's corresponding Android KeyEvent code. |
int |
length()
|
CharSequence |
subSequence(int start,
int end)
|
String |
toString()
|
static AndroidKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AndroidKeys[] |
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 |
|---|
public static final AndroidKeys ALT_LEFT
public static final AndroidKeys DEL
public static final AndroidKeys DPAD_DOWN
public static final AndroidKeys DPAD_LEFT
public static final AndroidKeys DPAD_RIGHT
public static final AndroidKeys DPAD_UP
public static final AndroidKeys ENTER
public static final AndroidKeys SHIFT_LEFT
public static final AndroidKeys F1
public static final AndroidKeys F2
public static final AndroidKeys F3
public static final AndroidKeys F4
public static final AndroidKeys F5
public static final AndroidKeys F6
public static final AndroidKeys F7
public static final AndroidKeys F8
public static final AndroidKeys F9
public static final AndroidKeys F10
public static final AndroidKeys F11
public static final AndroidKeys F12
public static final AndroidKeys BACK
public static final AndroidKeys HOME
public static final AndroidKeys MENU
public static final AndroidKeys SEARCH
public static final AndroidKeys SYM
public static final AndroidKeys ALT_RIGHT
public static final AndroidKeys SHIFT_RIGHT
| Method Detail |
|---|
public static AndroidKeys[] values()
for (AndroidKeys c : AndroidKeys.values()) System.out.println(c);
public static AndroidKeys valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public static int keyCodeFor(char keyCode)
throws SelendroidException
KeyEvent code.
keyCode - character to get KeyEvent code for
KeyEvent code
SelendroidExceptionpublic static boolean hasAndroidKeyEvent(char keyCode)
AndroidKeys.
keyCode - character to check
AndroidKeyspublic int getAndroidKeyCode()
KeyEvent code.
KeyEvent codepublic char charAt(int index)
charAt in interface CharSequencepublic int length()
length in interface CharSequence
public CharSequence subSequence(int start,
int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Enum<AndroidKeys>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||