com.atlassian.webtest.ui.keys
Class KeySequenceBuilder

java.lang.Object
  extended by com.atlassian.webtest.ui.keys.KeySequenceBuilder
All Implemented Interfaces:
KeyEventAware

public final class KeySequenceBuilder
extends Object
implements KeyEventAware

For easy and efficient instantiation of KeySequences.


Constructor Summary
KeySequenceBuilder()
           
KeySequenceBuilder(Key... keys)
           
KeySequenceBuilder(List<Key> keys)
           
KeySequenceBuilder(String characterKeys)
           
 
Method Summary
 KeySequenceBuilder append(Collection<Key> keys)
           
 KeySequenceBuilder append(Key... keys)
           
 KeySequenceBuilder append(String characterKeys)
           
 KeySequence build()
           
 Set<KeyEventType> keyEvents()
          Set of key events associated with this object.
 KeySequenceBuilder keyEvents(Collection<KeyEventType> events)
           
 KeySequenceBuilder keyEvents(KeyEventType... events)
           
 int size()
           
 KeySequenceBuilder typeMode(TypeMode typeMode)
           
 KeySequenceBuilder withPressed(ModifierKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeySequenceBuilder

public KeySequenceBuilder()

KeySequenceBuilder

public KeySequenceBuilder(List<Key> keys)

KeySequenceBuilder

public KeySequenceBuilder(Key... keys)

KeySequenceBuilder

public KeySequenceBuilder(String characterKeys)
Method Detail

append

public KeySequenceBuilder append(String characterKeys)

append

public KeySequenceBuilder append(Key... keys)

append

public KeySequenceBuilder append(Collection<Key> keys)

withPressed

public KeySequenceBuilder withPressed(ModifierKey key)

keyEvents

public KeySequenceBuilder keyEvents(KeyEventType... events)

keyEvents

public KeySequenceBuilder keyEvents(Collection<KeyEventType> events)

keyEvents

public 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 KeySequenceBuilder typeMode(TypeMode typeMode)

size

public int size()

build

public KeySequence build()


Copyright © 2014 Atlassian. All rights reserved.