|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Keyboard
Keyboard interface provides definitions for generating native keyboard events.
| Method Summary | |
|---|---|
String |
copy()
Clears the clipboard, performs the "copy" keyboard shortcut, then attempts to return the clipboard contents as a String. |
void |
copyRegion(ScreenRegion screenRegion)
Copies the content of a screen region into the clipboard. |
void |
keyDown(int keycode)
Presses down the key (given by the key code) on the underlying device. |
void |
keyDown(String keys)
Presses down a series of keys specified by the String argument keys. |
void |
keyUp()
Releases all the held down keys. |
void |
keyUp(int keycode)
Releases the key (given by the key code) on the underlying device. |
void |
keyUp(String keys)
Releases a series of keys specified by the String argument keys. |
void |
paste(String text)
Gets plain text from the clipboard and performs the "paste" keyboard shortcut. |
void |
type(String text)
Performs keyboard typing of the text specified by the arguments of the same name. |
| Method Detail |
|---|
String copy()
null if the clipboard couldn't be converted to a string or was empty.
nullvoid copyRegion(ScreenRegion screenRegion)
screenRegion - The screen region to be copiedvoid paste(String text)
text - the text to pastevoid type(String text)
text - the keys to typevoid keyDown(int keycode)
keyUp(int) method.
keycode - Key to press down (e.g. KeyEvent.VK_A)void keyUp(int keycode)
keycode - Key to releasevoid keyDown(String keys)
keyUp(String) method.
keys - the keys to be typed down.void keyUp()
void keyUp(String keys)
keys - the keys to release.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||