org.fest.swing.driver
Class DragAndDrop

java.lang.Object
  extended by org.fest.swing.driver.DragAndDrop

Deprecated. use ComponentDragAndDrop instead. This class will be removed in version 2.0.

@Deprecated
public class DragAndDrop
extends Object

Understands drag and drop.

Author:
Alex Ruiz

Field Summary
static int DRAG_THRESHOLD
          Deprecated. Number of pixels traversed before a drag starts.
 
Constructor Summary
DragAndDrop(Robot robot)
          Deprecated. use ComponentDragAndDrop instead.
 
Method Summary
 void drag(Component target, Point where)
          Deprecated. use ComponentDragAndDrop instead.
 void dragOver(Component target, Point where)
          Deprecated. use ComponentDragAndDrop instead.
 void drop(Component target, Point where)
          Deprecated. use ComponentDragAndDrop instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRAG_THRESHOLD

public static final int DRAG_THRESHOLD
Deprecated. 
Number of pixels traversed before a drag starts.

Constructor Detail

DragAndDrop

@Deprecated
public DragAndDrop(Robot robot)
Deprecated. use ComponentDragAndDrop instead.

Creates a new DragAndDrop.

Parameters:
robot - the robot to use to simulate user input.
Method Detail

drag

@RunsInEDT
@Deprecated
public void drag(Component target,
                                      Point where)
Deprecated. use ComponentDragAndDrop instead.

Performs a drag action at the given point.

Parameters:
target - the target component.
where - the point where to start the drag action.

drop

@RunsInEDT
@Deprecated
public void drop(Component target,
                                      Point where)
Deprecated. use ComponentDragAndDrop instead.

Ends a drag operation, releasing the mouse button over the given target location.

This method is tuned for native drag/drop operations, so if you get odd behavior, you might try using a simple Robot.moveMouse(Component, int, int) and Robot.releaseMouseButtons().

Parameters:
target - the target component.
where - the point where the drag operation ends.
Throws:
ActionFailedException - if there is no drag action in effect.

dragOver

@Deprecated
public void dragOver(Component target,
                                Point where)
Deprecated. use ComponentDragAndDrop instead.

Move the mouse appropriately to get from the source to the destination. Enter/exit events will be generated where appropriate.

Parameters:
target - the target component.
where - the point to drag over.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.