public final class Keys
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE
A single DELETE keystroke.
|
static java.lang.String |
ENTER
A single ENTER keystroke.
|
static java.lang.String |
ESCAPE
A single ESCAPE keystroke.
|
static java.lang.String |
F1
A single F1 keystroke.
|
static java.lang.String |
F10
A single F10 keystroke.
|
static java.lang.String |
F11
A single F11 keystroke.
|
static java.lang.String |
F12
A single F12 keystroke.
|
static java.lang.String |
F2
A single F2 keystroke.
|
static java.lang.String |
F3
A single F3 keystroke.
|
static java.lang.String |
F4
A single F4 keystroke.
|
static java.lang.String |
F5
A single F5 keystroke.
|
static java.lang.String |
F6
A single F6 keystroke.
|
static java.lang.String |
F7
A single F7 keystroke.
|
static java.lang.String |
F8
A single F8 keystroke.
|
static java.lang.String |
F9
A single F9 keystroke.
|
static java.lang.String |
TAB
A single TAB keystroke.
|
Constructor and Description |
---|
Keys() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
alt(java.lang.String text)
Returns a string indicating that the ALT key should be pressed for each character in
text . |
static java.lang.String |
ctrl(java.lang.String text)
Returns a string indicating that the CTRL key should be pressed for each character in
text . |
static java.lang.String |
delete(int count)
Repeats the DELETE key "count" times.
|
static java.lang.String |
enter(int count)
Repeats the ENTER key "count" times.
|
static java.lang.String |
escape(int count)
Repeats the ESCAPE key "count" times.
|
static java.lang.String |
repeat(char key,
int count)
Repeats the specified key "count" times.
|
static java.lang.String |
shift(java.lang.String text)
Returns a string indicating that the SHIFT key should be pressed for each character in
text . |
static java.lang.String |
tab(int count)
Repeats the TAB key "count" times.
|
public static final java.lang.String ENTER
enter(int)
.public static final java.lang.String ESCAPE
escape(int)
.public static final java.lang.String TAB
tab(int)
.public static final java.lang.String DELETE
delete(int)
.public static final java.lang.String F1
public static final java.lang.String F2
public static final java.lang.String F3
public static final java.lang.String F4
public static final java.lang.String F5
public static final java.lang.String F6
public static final java.lang.String F7
public static final java.lang.String F8
public static final java.lang.String F9
public static final java.lang.String F10
public static final java.lang.String F11
public static final java.lang.String F12
public static final java.lang.String alt(java.lang.String text)
text
.
text
- the characters to press the ALT key forpublic static final java.lang.String ctrl(java.lang.String text)
text
.
text
- the characters to press the CTRL key forpublic static final java.lang.String shift(java.lang.String text)
text
.
text
- the characters to press the SHIFT key forpublic static final java.lang.String enter(int count)
count
- the number of times the ENTER key should be pressed.java.lang.IllegalArgumentException
- if count is 0public static final java.lang.String escape(int count)
count
- the number of times the ESCAPE key should be pressed.java.lang.IllegalArgumentException
- if count is 0public static final java.lang.String tab(int count)
count
- the number of times the TAB key should be pressed.java.lang.IllegalArgumentException
- if count is 0public static final java.lang.String delete(int count)
count
- the number of times the DELETE key should be pressed.java.lang.IllegalArgumentException
- if count is 0public static final java.lang.String repeat(char key, int count)
key
- the key to repeatcount
- the number of times the "key" should be pressed.java.lang.IllegalArgumentException
- if count is 0Copyright © SAS Institute. All Rights Reserved.