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 intDeprecated.Number of pixels traversed before a drag starts.private final RobotDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intDeprecated.private intdistance(int coordinate, int dimension) Deprecated.voidDeprecated.useinstead.ComponentDragAndDropprivate voidDeprecated.voidDeprecated.useinstead.ComponentDragAndDropvoidDeprecated.useinstead.ComponentDragAndDropprivate voidDeprecated.private voidDeprecated.private voidmouseMoveOnWindowsAndMacintosh(Component target, int x, int y) Deprecated.private Pointpoint(int x, int y) Deprecated.private Settingssettings()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.useinstead.ComponentDragAndDropCreates a newDragAndDrop.- Parameters:
robot- the robot to use to simulate user input.
-
-
Method Details
-
drag
Deprecated.useinstead.ComponentDragAndDropPerforms 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.useinstead.ComponentDragAndDropEnds 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.useinstead.ComponentDragAndDropMove 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