Class ClickRobotImpl

java.lang.Object
org.testfx.robot.impl.ClickRobotImpl
All Implemented Interfaces:
ClickRobot

public class ClickRobotImpl extends Object implements ClickRobot
  • Field Details

    • SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS

      private static final long SLEEP_AFTER_DOUBLE_CLICK_IN_MILLIS
      See Also:
    • mouseRobot

      private final MouseRobot mouseRobot
    • moveRobot

      private final MoveRobot moveRobot
    • sleepRobot

      private final SleepRobot sleepRobot
  • Constructor Details

  • Method Details

    • clickOn

      public void clickOn(javafx.scene.input.MouseButton... buttons)
      Description copied from interface: ClickRobot
      Clicks whatever is under the mouse.
      Specified by:
      clickOn in interface ClickRobot
      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 given PointQuery.query() using the specified motion (see: Motion) and clicks whatever is under it.
      Specified by:
      clickOn in interface ClickRobot
      Parameters:
      pointQuery - the pointQuery that specifies the location to move the mouse to
      motion - the type of motion to use for movement
      buttons - 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 interface ClickRobot
      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 given PointQuery.query() using the specified motion (see: Motion and double-clicks whatever is under it.
      Specified by:
      doubleClickOn in interface ClickRobot
      Parameters:
      pointQuery - the pointQuery that specifies the location to move the mouse to
      motion - the type of motion to use for movement
      buttons - the mouse buttons to double-click