|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.swt.finder.keyboard.KeyboardFactory
public class KeyboardFactory
Creates a keyboard using the specified strategy.
| Constructor Summary | |
|---|---|
KeyboardFactory(Class<?> strategyClass)
|
|
KeyboardFactory(String strategyClass)
|
|
| Method Summary | |
|---|---|
static Keyboard |
getAWTKeyboard()
Creates a keyboard that uses AWT Robot to press keys. |
static Keyboard |
getDefaultKeyboard(Widget widget,
SelfDescribing description)
|
static Keyboard |
getMockKeyboard(Widget widget,
SelfDescribing description)
Creates a keyboard that creates mock events directly pumped to the widget. |
static Keyboard |
getSWTKeyboard()
Creates a keyboard that uses Display.post(Event) to press keys. |
Keyboard |
keyboard(Widget widget,
SelfDescribing description)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyboardFactory(String strategyClass)
throws Exception
strategyClass - the name of the class that is an instance of KeyboardStrategy.
Exception - if the class cannot be instantiated.
public KeyboardFactory(Class<?> strategyClass)
throws Exception
strategyClass - the class representing an instance of KeyboardStrategy.
Exception - if the class cannot be instantiated.| Method Detail |
|---|
public Keyboard keyboard(Widget widget,
SelfDescribing description)
widget - the widget on which the mock events are typed.description - the description of the widget.
public static Keyboard getDefaultKeyboard(Widget widget,
SelfDescribing description)
widget - the widget on which the mock events are typed.description - the description of the widget.
SWTBotPreferences.KEYBOARD_STRATEGY.
public static Keyboard getMockKeyboard(Widget widget,
SelfDescribing description)
widget - the widget on which the mock events are typed.description - the description of the widget.
public static Keyboard getAWTKeyboard()
Robot to press keys.
public static Keyboard getSWTKeyboard()
Display.post(Event) to press keys.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||