com.atlassian.webtest.ui.keys
Class AbstractKeySequence

java.lang.Object
  extended by 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

Constructor Summary
AbstractKeySequence(TypeMode typeMode, Collection<ModifierKey> toPress, Collection<KeyEventType> events)
           
 
Method Summary
 Set<KeyEventType> keyEvents()
          Set of key events associated with this object.
 TypeMode typeMode()
          Type mode of this component.
 Set<ModifierKey> withPressed()
          A set of SpecialKeys that should be pressed during entering this sequence's KeySequence.keys().
 
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
 

Constructor Detail

AbstractKeySequence

public AbstractKeySequence(TypeMode typeMode,
                           Collection<ModifierKey> toPress,
                           Collection<KeyEventType> events)
Method Detail

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.