public interface DragSource
Modifier and Type | Method and Description |
---|---|
boolean |
checkDrop(DropTarget target)
Is the drop target an acceptable one?
Called prior to calling the DropTarget's checkDrop.
|
void |
dragCompleted(DropTarget target)
A callback to let the source know that the drop completed successfully.
|
boolean |
startDrag(Cursor[] cursors,
Object[] data)
Called by the DnDManager to verify that a drag may begin at this source.
|
boolean startDrag(Cursor[] cursors, Object[] data)
cursors
- a two-element array- the first element should contain
the cursor to use for valid drops, the second for invalid drops. Either
or both may be left blank to use the default DnD cursors.data
- a single-element array that should be filled in with
the data that will be sent to a DropTarget if there is a successful
drop.boolean checkDrop(DropTarget target)
target
- a potential DropTarget.void dragCompleted(DropTarget target)
Copyright © 2015. All rights reserved.