com.opera.core.systems.scope.services.ums
Class SystemInputManager

java.lang.Object
  extended by com.opera.core.systems.scope.AbstractService
      extended by com.opera.core.systems.scope.services.ums.SystemInputManager
All Implemented Interfaces:
ISystemInput

public class SystemInputManager
extends AbstractService
implements ISystemInput

SystemInputManager handles systemInput simulating real clicks, and key presses.

Author:
Adam Minchinton, Karianne Ekern

Field Summary
 
Fields inherited from class com.opera.core.systems.scope.AbstractService
services
 
Method Summary
 void click(java.awt.Point location, SystemInputProtos.MouseInfo.MouseButton button, int numClicks, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
          Clicks MouseButton a specified number of times with zero or more modifiers held down.
 void init()
           
 void keyDown(java.lang.String key, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
           
 void keyPress(java.lang.String key, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
          Presses key, optionally with one or more modifiers held down.
 void keyUp(java.lang.String key, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
           
 void mouseDown(java.awt.Point location, SystemInputProtos.MouseInfo.MouseButton button, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
           
 void mouseMove(java.awt.Point location, SystemInputProtos.MouseInfo.MouseButton button, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
           
 void mouseUp(java.awt.Point location, SystemInputProtos.MouseInfo.MouseButton button, java.util.List<SystemInputProtos.ModifierPressed> modifiers)
           
 
Methods inherited from class com.opera.core.systems.scope.AbstractService
buildPayload, executeCommand, executeCommand, getVersion, isVersionInRange, sleep, xpathIterator, xpathPointer, xpathQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init()

click

public void click(java.awt.Point location,
                  SystemInputProtos.MouseInfo.MouseButton button,
                  int numClicks,
                  java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Description copied from interface: ISystemInput
Clicks MouseButton a specified number of times with zero or more modifiers held down.

Specified by:
click in interface ISystemInput
Parameters:
location - - Point to click
button - - MouseButton to click
numClicks - - number of clicks
modifiers - - modifiers to hold down during click

mouseMove

public void mouseMove(java.awt.Point location,
                      SystemInputProtos.MouseInfo.MouseButton button,
                      java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Specified by:
mouseMove in interface ISystemInput

mouseUp

public void mouseUp(java.awt.Point location,
                    SystemInputProtos.MouseInfo.MouseButton button,
                    java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Specified by:
mouseUp in interface ISystemInput

mouseDown

public void mouseDown(java.awt.Point location,
                      SystemInputProtos.MouseInfo.MouseButton button,
                      java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Specified by:
mouseDown in interface ISystemInput

keyPress

public void keyPress(java.lang.String key,
                     java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Description copied from interface: ISystemInput
Presses key, optionally with one or more modifiers held down.

Specified by:
keyPress in interface ISystemInput
Parameters:
key - - key to press
modifiers - - modifiers to hold

keyDown

public void keyDown(java.lang.String key,
                    java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Specified by:
keyDown in interface ISystemInput

keyUp

public void keyUp(java.lang.String key,
                  java.util.List<SystemInputProtos.ModifierPressed> modifiers)
Specified by:
keyUp in interface ISystemInput


Copyright © 2011. All Rights Reserved.