|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DragSource
A drag source is associated with a component and represents a valid place to start a drag and drop operation.
| Method Summary | |
|---|---|
boolean |
checkDrop(DropTarget target)
Is the drop target an acceptable one? |
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. |
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||