Share this page

com.hp.lft.sdk

## Class DragAndDropArgs

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

-     public class DragAndDropArgs
      extends java.lang.Object

  Class defining the behavior for drag and drop operations.

- - ### Constructor Summary

    Constructor and Description
    `DragAndDropArgs()` Initializes a new instance of the DragAndDropArgs class.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `Location` | `getDragFromLocation()` Returns the point on the source object where the drag operation begins.
    `Location` | `getDropOnLocation()` Returns the point on the source object where the drag operation ends.
    `MouseButton` | `getMouseButtonClicked()` Returns the mouse button used to drag this object.
    `void` | `setDragFromLocation(Location dragFromLocation)` Sets the point on the source object where the drag operation begins.
    `void` | `setDropOnLocation(Location dropOnLocation)` Sets the point on the source object where the drag operation ends.
    `void` | `setMouseButtonClicked(MouseButton mouseButtonClicked)` Sets the mouse button used to drag this object.

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

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

- - ### Constructor Detail

    - #### DragAndDropArgs

          public DragAndDropArgs()

      Initializes a new instance of the DragAndDropArgs class.

  - ### Method Detail

    - #### getDragFromLocation

          public Location getDragFromLocation()

      Returns the point on the source object where the drag operation begins. Default is the center of the object.
      Returns:
        the the point on the source object where the drag operation begins.

    - #### setDragFromLocation

          public void setDragFromLocation(Location dragFromLocation)

      Sets the point on the source object where the drag operation begins.
      Parameters:
        `dragFromLocation` - the point on the source object where the drag operation begins.

    - #### getDropOnLocation

          public Location getDropOnLocation()

      Returns the point on the source object where the drag operation ends. Default is the center of the object.
      Returns:
        the the point on the source object where the drag operation ends.

    - #### setDropOnLocation

          public void setDropOnLocation(Location dropOnLocation)

      Sets the point on the source object where the drag operation ends.
      Parameters:
        `dropOnLocation` - the point on the source object where the drag operation ends.

    - #### getMouseButtonClicked

          public MouseButton getMouseButtonClicked()

      Returns the mouse button used to drag this object.
      Returns:
        the mouse button used to drag this object.

    - #### setMouseButtonClicked

          public void setMouseButtonClicked(MouseButton mouseButtonClicked)

      Sets the mouse button used to drag this object.
      Parameters:
        `mouseButtonClicked` - the mouse button used to drag this object.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: