Package org.fest.swing.driver
Class DragAndDrop
java.lang.Object
org.fest.swing.driver.DragAndDrop
Deprecated.
Understands drag and drop.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.Number of pixels traversed before a drag starts.private final Robot
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
Deprecated.private int
distance
(int coordinate, int dimension) Deprecated.void
Deprecated.use
instead.ComponentDragAndDrop
private void
Deprecated.void
Deprecated.use
instead.ComponentDragAndDrop
void
Deprecated.use
instead.ComponentDragAndDrop
private void
Deprecated.private void
Deprecated.private void
mouseMoveOnWindowsAndMacintosh
(Component target, int x, int y) Deprecated.private Point
point
(int x, int y) Deprecated.private Settings
settings()
Deprecated.
-
Field Details
-
robot
Deprecated. -
DRAG_THRESHOLD
public static final int DRAG_THRESHOLDDeprecated.Number of pixels traversed before a drag starts.
-
-
Constructor Details
-
DragAndDrop
Deprecated.use
instead.ComponentDragAndDrop
Creates a newDragAndDrop
.- Parameters:
robot
- the robot to use to simulate user input.
-
-
Method Details
-
drag
Deprecated.use
instead.ComponentDragAndDrop
Performs a drag action at the given point.- Parameters:
target
- the target component.where
- the point where to start the drag action.
-
mouseMove
Deprecated. -
mouseMoveOnWindowsAndMacintosh
Deprecated. -
distance
Deprecated. -
point
Deprecated. -
drop
Deprecated.use
instead.ComponentDragAndDrop
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
andRobot.moveMouse(Component, int, int)
.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.
-
delayBetweenEvents
Deprecated. -
settings
Deprecated. -
dragOver
Deprecated.use
instead.ComponentDragAndDrop
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.
-
dragOver
Deprecated. -
mouseMove
Deprecated.
-
instead. This class will be removed in version 2.0.ComponentDragAndDrop