Open topic with navigation

com.hp.lft.sdk

## Class ClickArgs

- java.lang.Object
- - com.hp.lft.sdk.ClickArgs

-     public class ClickArgs
      extends java.lang.Object

  Class defining operations that can be specified in a Click operation.

- - ### Constructor Summary

    Constructor and Description
    `ClickArgs()` Constructs the default arguments for a click, which is a click with the left mouse button, at the center of the object.
    `ClickArgs(MouseButton button)` Constructs the default arguments for a click with the specified MouseButton and the default location (center).
    `ClickArgs(MouseButton button, Location location)` Constructs the default arguments for a click with the specified mouse button and location within the object.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `MouseButton` | `getButton()` Returns the mouse button set to perform the click.
    `Location` | `getLocation()` Returns the location to click within the test object.
    `void` | `setButton(MouseButton button)` Sets the mouse button to perform the click.
    `void` | `setLocation(Location location)` Sets the location to click within the test object.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClickArgs

          public ClickArgs()

      Constructs the default arguments for a click, which is a click with the left mouse button, at the center of the object.

    - #### ClickArgs

          public ClickArgs(MouseButton button)

      Constructs the default arguments for a click with the specified MouseButton and the default location (center).
      Parameters:
        `button` - the `MouseButton` used for the click operation.

    - #### ClickArgs

          public ClickArgs(MouseButton button,
                           Location location)

      Constructs the default arguments for a click with the specified mouse button and location within the object.
      Parameters:
        `button` - the `MouseButton` used for the click operation.
        `location` - the `Location` to click within the test object.

  - ### Method Detail

    - #### getButton

          public MouseButton getButton()

      Returns the mouse button set to perform the click.
      Returns:
        the `MouseButton` set to perform the click.

    - #### setButton

          public void setButton(MouseButton button)

      Sets the mouse button to perform the click.
      Parameters:
        `button` - the `MouseButton` to perform the click.

    - #### getLocation

          public Location getLocation()

      Returns the location to click within the test object.
      Returns:
        the `Location` to click within the test object.

    - #### setLocation

          public void setLocation(Location location)

      Sets the location to click within the test object.
      Parameters:
        `location` - the `Location` to click within the test object.