public class ScopeSystemInputManager extends AbstractService implements SystemInput
| Modifier and Type | Field and Description |
|---|---|
protected com.opera.core.systems.scope.stp.services.desktop.ClickDelayer |
clickDelayer |
protected Logger |
logger |
servicesSERVICE_NAME| Constructor and Description |
|---|
ScopeSystemInputManager(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
void |
click(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
int numClicks,
List<SystemInputProtos.ModifierPressed> modifiers)
Clicks MouseButton a specified number of times with zero or more modifiers held down.
|
void |
init()
Initialize the service.
|
void |
keyDown(String key,
List<SystemInputProtos.ModifierPressed> modifiers) |
void |
keyPress(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
Presses key, optionally with one or more modifiers held down.
|
void |
keyUp(String key,
List<SystemInputProtos.ModifierPressed> modifiers) |
void |
mouseDown(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers) |
void |
mouseMove(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers) |
void |
mouseUp(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers) |
buildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceName, getServiceVersionprotected final Logger logger
protected final com.opera.core.systems.scope.stp.services.desktop.ClickDelayer clickDelayer
public ScopeSystemInputManager(ScopeServices services)
public void init()
Servicepublic void click(Point location, SystemInputProtos.MouseInfo.MouseButton button, int numClicks, List<SystemInputProtos.ModifierPressed> modifiers)
SystemInputclick in interface SystemInputlocation - - Point to clickbutton - - MouseButton to clicknumClicks - - number of clicksmodifiers - - modifiers to hold down during clickpublic void mouseMove(Point location, SystemInputProtos.MouseInfo.MouseButton button, List<SystemInputProtos.ModifierPressed> modifiers)
mouseMove in interface SystemInputpublic void mouseUp(Point location, SystemInputProtos.MouseInfo.MouseButton button, List<SystemInputProtos.ModifierPressed> modifiers)
mouseUp in interface SystemInputpublic void mouseDown(Point location, SystemInputProtos.MouseInfo.MouseButton button, List<SystemInputProtos.ModifierPressed> modifiers)
mouseDown in interface SystemInputpublic void keyPress(String key, List<SystemInputProtos.ModifierPressed> modifiers)
SystemInputkeyPress in interface SystemInputkey - - key to pressmodifiers - - modifiers to holdpublic void keyDown(String key, List<SystemInputProtos.ModifierPressed> modifiers)
keyDown in interface SystemInputpublic void keyUp(String key, List<SystemInputProtos.ModifierPressed> modifiers)
keyUp in interface SystemInputCopyright © 2013. All Rights Reserved.