|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SpecialKeys>
com.atlassian.webtest.ui.keys.SpecialKeys
public enum SpecialKeys
Enumeration of SpecialKeys used within tests.
This enumeration also implements the KeySequence interface for convenient usage.
NOTE: Some of the keys may be actually represented as Unicode/ASCII characters, nevertheless they should be supported by implementing frameworks for the convenience of API clients.
Key,
KeySequence| Enum Constant Summary | |
|---|---|
ARROW_DOWN
|
|
ARROW_LEFT
|
|
ARROW_RIGHT
|
|
ARROW_UP
|
|
BACKSPACE
|
|
DELETE
|
|
ENTER
|
|
ESC
|
|
SPACE
|
|
| Method Summary | |
|---|---|
List<Key> |
keys()
An immutable list of keys to be typed. |
static SpecialKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SpecialKeys[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
KeySequence |
withEvents(KeyEventType... events)
Construct key sequence consisting of this special key with given key events to invoke |
Set<ModifierKey> |
withPressed()
A set of SpecialKeys that should be pressed during entering this sequence's KeySequence.keys(). |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SpecialKeys ENTER
public static final SpecialKeys ESC
public static final SpecialKeys BACKSPACE
public static final SpecialKeys DELETE
public static final SpecialKeys SPACE
public static final SpecialKeys ARROW_LEFT
public static final SpecialKeys ARROW_RIGHT
public static final SpecialKeys ARROW_UP
public static final SpecialKeys ARROW_DOWN
| Method Detail |
|---|
public static SpecialKeys[] values()
for (SpecialKeys c : SpecialKeys.values()) System.out.println(c);
public static SpecialKeys 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 nullpublic List<Key> keys()
KeySequence
keys in interface KeySequencepublic Set<ModifierKey> withPressed()
KeySequenceSpecialKeys that should be pressed during entering this sequence's KeySequence.keys(). If empty,
no special keys should be pressed during typing.
withPressed in interface KeySequencenullpublic KeySequence withEvents(KeyEventType... events)
events - key events to invoke for the created sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||