com.atlassian.webtest.ui.keys
Class AbstractKeySequence
java.lang.Object
com.atlassian.webtest.ui.keys.AbstractKeySequence
- All Implemented Interfaces:
- KeyEventAware, KeySequence, TypeModeAware
- Direct Known Subclasses:
- CharacterKeySequence, DefaultKeySequence, SpecialKeysSequence
public abstract class AbstractKeySequence
- extends Object
- implements KeySequence, TypeModeAware, KeyEventAware
Abstract implementation of the KeySequence interface and its accompanying
interfaces.
- Since:
- v1.21
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.webtest.ui.keys.KeySequence |
keys |
AbstractKeySequence
public AbstractKeySequence(TypeMode typeMode,
Collection<ModifierKey> toPress,
Collection<KeyEventType> events)
withPressed
public final Set<ModifierKey> withPressed()
- Description copied from interface:
KeySequence
- A set of
SpecialKeys that should be pressed during entering this sequence's KeySequence.keys(). If empty,
no special keys should be pressed during typing.
- Specified by:
withPressed in interface KeySequence
- Returns:
- special keys to be pressed. Should never be
null
keyEvents
public final Set<KeyEventType> keyEvents()
- Description copied from interface:
KeyEventAware
- Set of key events associated with this object.
- Specified by:
keyEvents in interface KeyEventAware
- Returns:
- set of key event types
typeMode
public final TypeMode typeMode()
- Description copied from interface:
TypeModeAware
- Type mode of this component. If not explicitly specified,
TypeMode.DEFAULT should be returned.
- Specified by:
typeMode in interface TypeModeAware
- Returns:
- type mode
Copyright © 2014 Atlassian. All rights reserved.