Package org.testfx.robot.impl
Class ClickRobotImpl
- java.lang.Object
-
- org.testfx.robot.impl.ClickRobotImpl
-
- All Implemented Interfaces:
ClickRobot
public class ClickRobotImpl extends java.lang.Object implements ClickRobot
-
-
Field Summary
Fields Modifier and Type Field Description private MouseRobot
mouseRobot
private MoveRobot
moveRobot
private static long
SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS
private SleepRobot
sleepRobot
-
Constructor Summary
Constructors Constructor Description ClickRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot, SleepRobot sleepRobot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clickOn(javafx.scene.input.MouseButton... buttons)
Clicks whatever is under the mouse.void
clickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
Moves the mouse to the location specified by the givenPointQuery.query()
using the specifiedmotion
(see:Motion
) and clicks whatever is under it.void
doubleClickOn(javafx.scene.input.MouseButton... buttons)
Double-clicks whatever is under the mouse.void
doubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
Moves the mouse to the location specified by the givenPointQuery.query()
using the specifiedmotion
(see:Motion
and double-clicks whatever is under it.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testfx.robot.ClickRobot
clickOn, doubleClickOn
-
-
-
-
Field Detail
-
SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS
private static final long SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS
- See Also:
- Constant Field Values
-
mouseRobot
private final MouseRobot mouseRobot
-
moveRobot
private final MoveRobot moveRobot
-
sleepRobot
private final SleepRobot sleepRobot
-
-
Constructor Detail
-
ClickRobotImpl
public ClickRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot, SleepRobot sleepRobot)
-
-
Method Detail
-
clickOn
public void clickOn(javafx.scene.input.MouseButton... buttons)
Description copied from interface:ClickRobot
Clicks whatever is under the mouse.- Specified by:
clickOn
in interfaceClickRobot
- Parameters:
buttons
- the mouse buttons to click
-
clickOn
public void clickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:ClickRobot
Moves the mouse to the location specified by the givenPointQuery.query()
using the specifiedmotion
(see:Motion
) and clicks whatever is under it.- Specified by:
clickOn
in interfaceClickRobot
- Parameters:
pointQuery
- the pointQuery that specifies the location to move the mouse tomotion
- the type of motion to use for movementbuttons
- the mouse buttons to click
-
doubleClickOn
public void doubleClickOn(javafx.scene.input.MouseButton... buttons)
Description copied from interface:ClickRobot
Double-clicks whatever is under the mouse.- Specified by:
doubleClickOn
in interfaceClickRobot
- Parameters:
buttons
- the mouse buttons to double-click
-
doubleClickOn
public void doubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:ClickRobot
Moves the mouse to the location specified by the givenPointQuery.query()
using the specifiedmotion
(see:Motion
and double-clicks whatever is under it.- Specified by:
doubleClickOn
in interfaceClickRobot
- Parameters:
pointQuery
- the pointQuery that specifies the location to move the mouse tomotion
- the type of motion to use for movementbuttons
- the mouse buttons to double-click
-
-