Package com.hp.lft.sdk
Class Mouse
java.lang.Object
com.hp.lft.sdk.Mouse
A class that enables low-level mouse operations. 
When working in a grid configuration, use
When working in a grid configuration, use
DesktopEnvironment.getMouse() in order to get the MouseDevice
 object, which enables mouse operations on a specific environment or grid
 node.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidbuttonDown(Point point) Presses the left mouse button at the specified point on the screen.static voidbuttonDown(Point point, MouseButton button) Presses the specified mouse button at the specified point on the screen.static voidReleases the left mouse button at the specified point on the screen.static voidbuttonUp(Point point, MouseButton button) Releases the specified mouse button at the specified point on the screen.static voidMoves the mouse to the specified point on the screen and clicks the left mouse button.static voidclick(Point point, MouseButton button) Moves the mouse to the specified point on the screen and clicks the specified mouse button.static voiddoubleClick(Point point) Moves the mouse to the specified point on the screen and double-clicks the left mouse button.static voiddoubleClick(Point point, MouseButton button) Moves the mouse to the specified point on the screen and double-clicks the left mouse button.static voiddragAndDrop(Point fromPoint, Point toPoint) Drags the mouse from and to the specified points while the left mouse button is pressed, and then releases the mouse button.static voiddragAndDrop(Point fromPoint, Point toPoint, MouseButton button) Drags the mouse from and to the specified points while the specified mouse button is pressed, and then releases the mouse button.static voidMoves the mouse to the specified point on the screen.
- 
Constructor Details- 
Mousepublic Mouse()
 
- 
- 
Method Details- 
clickMoves the mouse to the specified point on the screen and clicks the left mouse button.- Parameters:
- point- the point on the screen to place the mouse pointer.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
clickMoves the mouse to the specified point on the screen and clicks the specified mouse button.- Parameters:
- point- the point on the screen to place the mouse pointer.
- button- the- MouseButtonused for the click operation.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
doubleClickMoves the mouse to the specified point on the screen and double-clicks the left mouse button.- Parameters:
- point- the point on the screen to place the mouse pointer.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
doubleClickMoves the mouse to the specified point on the screen and double-clicks the left mouse button.- Parameters:
- point- the point on the screen to place the mouse pointer.
- button- the- MouseButtonused for the double-click operation.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
dragAndDropDrags the mouse from and to the specified points while the left mouse button is pressed, and then releases the mouse button.- Parameters:
- fromPoint- the point from which to perform the drag and drop operation.
- toPoint- the point where the drag ends and the mouse button is released.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
dragAndDroppublic static void dragAndDrop(Point fromPoint, Point toPoint, MouseButton button) throws GeneralLeanFtException Drags the mouse from and to the specified points while the specified mouse button is pressed, and then releases the mouse button.- Parameters:
- fromPoint- the point from which to perform the drag and drop operation.
- toPoint- the point where the drag ends and the mouse button is released.
- button- the- MouseButtonthat is pressed during the drag operation.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
buttonDownPresses the left mouse button at the specified point on the screen.- Parameters:
- point- the point where the mouse button is pressed.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
buttonDownPresses the specified mouse button at the specified point on the screen.- Parameters:
- point- the point where the mouse button is pressed.
- button- the- MouseButtonto press.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
buttonUpReleases the left mouse button at the specified point on the screen.- Parameters:
- point- the point where the mouse button is released.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
buttonUpReleases the specified mouse button at the specified point on the screen.- Parameters:
- point- the point where the mouse button is released.
- button- the- MouseButtonto release.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
moveMoves the mouse to the specified point on the screen.- Parameters:
- point- the point on the screen to place the mouse pointer.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-