Package org.testfx.robot.impl
Class ClickRobotImpl
java.lang.Object
org.testfx.robot.impl.ClickRobotImpl
- All Implemented Interfaces:
ClickRobot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MouseRobotprivate final MoveRobotprivate static final longprivate final SleepRobot -
Constructor Summary
ConstructorsConstructorDescriptionClickRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot, SleepRobot sleepRobot) -
Method Summary
Modifier and TypeMethodDescriptionvoidclickOn(javafx.scene.input.MouseButton... buttons) Clicks whatever is under the mouse.voidclickOn(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.voiddoubleClickOn(javafx.scene.input.MouseButton... buttons) Double-clicks whatever is under the mouse.voiddoubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) Moves the mouse to the location specified by the givenPointQuery.query()using the specifiedmotion(see:Motionand double-clicks whatever is under it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testfx.robot.ClickRobot
clickOn, doubleClickOn
-
Field Details
-
SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS
private static final long SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS- See Also:
-
mouseRobot
-
moveRobot
-
sleepRobot
-
-
Constructor Details
-
ClickRobotImpl
-
-
Method Details
-
clickOn
public void clickOn(javafx.scene.input.MouseButton... buttons) Description copied from interface:ClickRobotClicks whatever is under the mouse.- Specified by:
clickOnin 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:ClickRobotMoves the mouse to the location specified by the givenPointQuery.query()using the specifiedmotion(see:Motion) and clicks whatever is under it.- Specified by:
clickOnin 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:ClickRobotDouble-clicks whatever is under the mouse.- Specified by:
doubleClickOnin 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:ClickRobotMoves the mouse to the location specified by the givenPointQuery.query()using the specifiedmotion(see:Motionand double-clicks whatever is under it.- Specified by:
doubleClickOnin 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
-