public enum KeyType extends Enum<KeyType>
文件名:KeyType.java
用途: 用于统一键盘按键指向的键值,以便于统一工具的调用
编码时间:2022年1月29日 下午5:04:29
修改时间:2022年1月29日 下午5:04:29
Enum Constant and Description |
---|
A
A键
|
ADD
数字小键盘加号键(+)
|
ALT
alt键
|
B
B键
|
BACK_SPACE
退格键(BackSpace)
|
C
C键
|
COMMAND
Mac系统键盘上对应command按键
|
CTRL
ctrl键
|
D
D键
|
DECIMAL
数字小键盘小数点键(.)
|
DEL
删除键(Delect/Del)
|
DIVIDE
数字小键盘除号键(/)
|
DOWN
方向下键(Down)
|
E
E键
|
END
结束键(End)
|
ENTER
回车键(Enter)
|
EQUALS
等号键
|
ESC
esc键
|
F
F键
|
F1
F1键
|
F10
F10键
|
F11
F11键
|
F12
F12键
|
F2
F2键
|
F3
F3键
|
F4
F4键
|
F5
F5键
|
F6
F6键
|
F7
F7键
|
F8
F8键
|
F9
F9键
|
G
G键
|
H
H键
|
HOME
主页键(Home)
|
I
I键
|
INS
插入键(Insert/Ins)
|
J
J键
|
K
K键
|
L
L键
|
LEFT
方向左键(Left)
|
M
M键
|
META
命令按键,在Windows系统键盘上对应Win键;在Sun系统键盘上对应实心宝石键(◆);在Mac系统键盘上对应command按键(但在win系统上,selenium工具使用无效)
|
MULTIPLY
数字小键盘乘号键(*)
|
N
N键
|
NUM0
数字小键盘0键
|
NUM1
数字小键盘1键
|
NUM2
数字小键盘2键
|
NUM3
数字小键盘3键
|
NUM4
数字小键盘4键
|
NUM5
数字小键盘5键
|
NUM6
数字小键盘6键
|
NUM7
数字小键盘7键
|
NUM8
数字小键盘8键
|
NUM9
数字小键盘9键
|
O
O键
|
P
P键
|
PAGE_DOWN
页面向下按键(Page down)
|
PAGE_UP
页面向上按键(Page up)
|
PAUSE
pause键
|
Q
Q键
|
R
R键
|
RIGHT
方向右键(Right)
|
S
S键
|
SEMICOLON
分号键
|
SEPARATOR
数字小键盘回车键(Separator)
|
SHIFT
shift键
|
SPACE
空格键(Space)
|
SUBTRACT
数字小键盘减键(-)
|
T
T键
|
TAB
tab键
|
U
U键
|
UP
方向上键(Up)
|
V
V键
|
W
W键
|
WIN
Windows系统键盘上对应Win键,在selenium工具中不生效
|
X
X键
|
Y
Y键
|
Z
Z键
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
该方法用于返回按键的名称
|
char |
getSeleniumKey()
该方法用于返回在selenium工具中按键指向的key值
|
char |
getSikuliKey()
该方法用于返回在sikuli工具中按键指向的key值
|
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyType BACK_SPACE
public static final KeyType TAB
public static final KeyType ENTER
public static final KeyType SHIFT
public static final KeyType CTRL
public static final KeyType ALT
public static final KeyType PAUSE
public static final KeyType ESC
public static final KeyType SPACE
public static final KeyType PAGE_UP
public static final KeyType PAGE_DOWN
public static final KeyType END
public static final KeyType HOME
public static final KeyType LEFT
public static final KeyType UP
public static final KeyType RIGHT
public static final KeyType DOWN
public static final KeyType INS
public static final KeyType DEL
public static final KeyType SEMICOLON
public static final KeyType EQUALS
public static final KeyType NUM0
public static final KeyType NUM1
public static final KeyType NUM2
public static final KeyType NUM3
public static final KeyType NUM4
public static final KeyType NUM5
public static final KeyType NUM6
public static final KeyType NUM7
public static final KeyType NUM8
public static final KeyType NUM9
public static final KeyType MULTIPLY
public static final KeyType ADD
public static final KeyType SEPARATOR
public static final KeyType SUBTRACT
public static final KeyType DECIMAL
public static final KeyType DIVIDE
public static final KeyType F1
public static final KeyType F2
public static final KeyType F3
public static final KeyType F4
public static final KeyType F5
public static final KeyType F6
public static final KeyType F7
public static final KeyType F8
public static final KeyType F9
public static final KeyType F10
public static final KeyType F11
public static final KeyType F12
public static final KeyType META
public static final KeyType COMMAND
public static final KeyType WIN
public static final KeyType A
public static final KeyType B
public static final KeyType C
public static final KeyType D
public static final KeyType E
public static final KeyType F
public static final KeyType G
public static final KeyType H
public static final KeyType I
public static final KeyType J
public static final KeyType K
public static final KeyType L
public static final KeyType M
public static final KeyType N
public static final KeyType O
public static final KeyType P
public static final KeyType Q
public static final KeyType R
public static final KeyType S
public static final KeyType T
public static final KeyType U
public static final KeyType V
public static final KeyType W
public static final KeyType X
public static final KeyType Y
public static final KeyType Z
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType 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 char getSeleniumKey()
public char getSikuliKey()
public String getName()
Copyright © 2024. All rights reserved.