ComponentDragAndDrop instead. This class will be removed in version 2.0.@Deprecated public class DragAndDrop extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DRAG_THRESHOLD
Deprecated.
Number of pixels traversed before a drag starts.
|
| Constructor and Description |
|---|
DragAndDrop(Robot robot)
Deprecated.
use
instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
drag(Component target,
Point where)
Deprecated.
use
instead. |
void |
dragOver(Component target,
Point where)
Deprecated.
use
instead. |
void |
drop(Component target,
Point where)
Deprecated.
use
instead. |
public static final int DRAG_THRESHOLD
@Deprecated public DragAndDrop(Robot robot)
ComponentDragAndDrop instead.DragAndDrop.robot - the robot to use to simulate user input.@RunsInEDT @Deprecated public void drag(Component target, Point where)
ComponentDragAndDrop instead.target - the target component.where - the point where to start the drag action.@RunsInEDT @Deprecated public void drop(Component target, Point where)
ComponentDragAndDrop instead.
This method is tuned for native drag/drop operations, so if you get odd behavior, you might try using a simple
and Robot.moveMouse(Component, int, int).Robot.releaseMouseButtons()
target - the target component.where - the point where the drag operation ends.ActionFailedException - if there is no drag action in effect.@Deprecated public void dragOver(Component target, Point where)
ComponentDragAndDrop instead.target - the target component.where - the point to drag over.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.