P
- the class of the object to be droppedpublic class DropTargetImpl<P>
extends java.awt.dnd.DropTargetAdapter
implements java.awt.dnd.DropTargetListener
Constructor and Description |
---|
DropTargetImpl(AcceptableDropComponent<P> comp,
java.lang.Class classToBeAccepted)
Constructor 3.
|
DropTargetImpl(AcceptableDropComponent<P> comp,
java.lang.Class classToBeAccepted,
int dragType)
Constructor 4.
|
DropTargetImpl(AcceptableDropComponent<P> comp,
java.lang.Class classToBeAccepted,
int dragType,
java.util.List<java.awt.Component> acceptedSources)
Constructor 1.
|
DropTargetImpl(AcceptableDropComponent<P> comp,
java.lang.Class classToBeAccepted,
java.util.List<java.awt.Component> acceptedSources)
Constructor 2.
|
Modifier and Type | Method and Description |
---|---|
void |
drop(java.awt.dnd.DropTargetDropEvent arg0) |
dragEnter, dragExit, dragOver, dropActionChanged
public DropTargetImpl(AcceptableDropComponent<P> comp, java.lang.Class classToBeAccepted, int dragType, java.util.List<java.awt.Component> acceptedSources)
comp
- a Container instance that implements AcceptableDropContainerclassToBeAccepted
- dragType
- an integer (see DnDConstants)acceptedSources
- a List of Component from which the drag may come (can be null)public DropTargetImpl(AcceptableDropComponent<P> comp, java.lang.Class classToBeAccepted, java.util.List<java.awt.Component> acceptedSources)
comp
- a Container instance that implements AcceptableDropContainerclassToBeAccepted
- acceptedSources
- a List of Component from which the drag may come (can be null)public DropTargetImpl(AcceptableDropComponent<P> comp, java.lang.Class classToBeAccepted)
comp
- a Container instance that implements AcceptableDropContainerclassToBeAccepted
- public DropTargetImpl(AcceptableDropComponent<P> comp, java.lang.Class classToBeAccepted, int dragType)
comp
- a Container instance that implements AcceptableDropContainerclassToBeAccepted
- dragType
- an integer (see DnDConstants)