public class BasicDropHandler extends DropTarget
Component.setDropTarget(java.awt.dnd.DropTarget) method to override the
one which is installed with it (which probably comes from the basic UI).DropTarget.DropTargetAutoScroller| Constructor and Description |
|---|
BasicDropHandler(JComponent comp)
Constructs a new drop handler for use with a given component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dragEnter(DropTargetDragEvent evt) |
void |
dragExit(DropTargetEvent evt) |
void |
dragOver(DropTargetDragEvent evt) |
void |
drop(DropTargetDropEvent evt) |
protected boolean |
isDropLocation(Point loc)
Indicates whether a given location is permissible for a drop event.
|
addDropTargetListener, addNotify, clearAutoscroll, createDropTargetAutoScroller, createDropTargetContext, dropActionChanged, getComponent, getDefaultActions, getDropTargetContext, getFlavorMap, initializeAutoscrolling, isActive, removeDropTargetListener, removeNotify, setActive, setComponent, setDefaultActions, setFlavorMap, updateAutoscrollpublic BasicDropHandler(JComponent comp)
comp - the component which this drop handler will controlpublic void dragEnter(DropTargetDragEvent evt)
dragEnter in interface DropTargetListenerdragEnter in class DropTargetpublic void dragOver(DropTargetDragEvent evt)
dragOver in interface DropTargetListenerdragOver in class DropTargetpublic void dragExit(DropTargetEvent evt)
dragExit in interface DropTargetListenerdragExit in class DropTargetpublic void drop(DropTargetDropEvent evt)
drop in interface DropTargetListenerdrop in class DropTargetprotected boolean isDropLocation(Point loc)
loc - the point at which a drop might take placetrue iff it's OK to drop at locCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.