org.eclipse.swtbot.swt.finder.keyboard
Interface KeyboardStrategy

All Known Implementing Classes:
AbstractKeyboardStrategy

public interface KeyboardStrategy

A strategy that can type keys on the keyboard. Implementors are adviced to use AbstractKeyboardStrategy and must have a default no-args constructor.

Version:
$Id$
Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
See Also:
AbstractKeyboardStrategy

Method Summary
 void init(Widget widget, SelfDescribing description)
           
 void pressKeys(KeyStroke... keys)
          Presses the specified keys.
 void releaseKeys(KeyStroke... keys)
          Presses the specified keys.
 

Method Detail

init

void init(Widget widget,
          SelfDescribing description)
Parameters:
widget - the widget on which this keyboard may type. Note that it is not necessary that the strategy actually types on this widget.
description - the description of the widget.

pressKeys

void pressKeys(KeyStroke... keys)
Presses the specified keys.

Parameters:
keys - the keystrokes to press down

releaseKeys

void releaseKeys(KeyStroke... keys)
Presses the specified keys.

Parameters:
keys - the keystrokes to press down