|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DropTarget
A drop target is associated with a component and represents a valid place to end a drag and drop.
| Method Summary | |
|---|---|
boolean |
checkDrop(DragSource source,
Object peekdata)
Return true if the specified drop should be allowed on this target. |
void |
dropCompleted(DragSource source,
Object data,
Point pos)
Called when the drop is actually executed. |
void |
noDrop()
Called to let the DropTarget know that we've stopped hovering over but did not actually drop. |
| Method Detail |
|---|
boolean checkDrop(DragSource source,
Object peekdata)
dropCompleted(com.samskivert.swing.dnd.DragSource, java.lang.Object, java.awt.Point) or
noDrop() will be called next.
void noDrop()
void dropCompleted(DragSource source,
Object data,
Point pos)
pos - the location of the drop in screen coordinates
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||