public interface WindowDropHandler
Modifier and Type | Method and Description |
---|---|
DropTargetComponentType |
getDropTargetComponentType()
Return the type of component (container or component) this drop handler prefers to drop onto.
|
boolean |
handleDrop(javax.swing.JComponent droppedOn,
java.awt.dnd.DropTargetDropEvent event)
Handle the drop itself.
|
void |
init(WindowWorkspace workspace)
Gives the window workspace to the drop handler in case it needs it later during a drop
|
DropReaction |
testDrop(java.awt.dnd.DropTargetEvent event)
Test whether or not this type of event is an appropriate data flavor for this drop handler.
|
void init(WindowWorkspace workspace)
DropTargetComponentType getDropTargetComponentType()
DropReaction testDrop(java.awt.dnd.DropTargetEvent event)
DropReaction.None
boolean handleDrop(javax.swing.JComponent droppedOn, java.awt.dnd.DropTargetDropEvent event)
testDrop(DropTargetEvent)
will have already
been called and returned non-None for the event. Return true if all went well.