|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.dnd.DropTarget
javax.swing.TransferHandler.SwingDropTarget
This is the default drop target for drag and drop operations if
one isn't provided by the developer. DropTarget
only supports one DropTargetListener and doesn't
function properly if it isn't set.
This class sets the one listener as the linkage of drop handling
to the TransferHandler, and adds support for
additional listeners which some of the ComponentUI
implementations install to manipulate a drop insertion location.
| Nested Class Summary |
| Nested classes inherited from class java.awt.dnd.DropTarget |
DropTarget.DropTargetAutoScroller |
| Field Summary | |
private EventListenerList |
listenerList
|
| Fields inherited from class java.awt.dnd.DropTarget |
|
| Constructor Summary | |
(package private) |
TransferHandler.SwingDropTarget(JComponent c)
|
| Method Summary | |
void |
addDropTargetListener(DropTargetListener dtl)
Adds a new DropTargetListener (UNICAST SOURCE).
|
void |
dragEnter(DropTargetDragEvent e)
The DropTarget intercepts
dragEnter() notifications before the
registered DropTargetListener gets them.
|
void |
dragExit(DropTargetEvent e)
The DropTarget intercepts
dragExit() notifications before the
registered DropTargetListener gets them.
|
void |
dragOver(DropTargetDragEvent e)
The DropTarget
intercepts dragOver() notifications before the
registered DropTargetListener gets them.
|
void |
drop(DropTargetDropEvent e)
The DropTarget intercepts drop() notifications before the
registered DropTargetListener gets them.
|
void |
dropActionChanged(DropTargetDragEvent e)
The DropTarget intercepts
dropActionChanged() notifications before the
registered DropTargetListener gets them.
|
void |
removeDropTargetListener(DropTargetListener dtl)
Removes the current DropTargetListener (UNICAST SOURCE).
|
| Methods inherited from class java.awt.dnd.DropTarget |
addNotify, clearAutoscroll, createDropTargetAutoScroller, createDropTargetContext, getComponent, getDefaultActions, getDropTargetContext, getFlavorMap, initializeAutoscrolling, isActive, removeNotify, setActive, setComponent, setDefaultActions, setFlavorMap, updateAutoscroll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private EventListenerList listenerList
| Constructor Detail |
TransferHandler.SwingDropTarget(JComponent c)
| Method Detail |
public void addDropTargetListener(DropTargetListener dtl)
throws TooManyListenersException
DropTargetDropTargetListener (UNICAST SOURCE).
addDropTargetListener in class DropTargetdtl - The new DropTargetListener
TooManyListenersExceptionpublic void removeDropTargetListener(DropTargetListener dtl)
DropTargetDropTargetListener (UNICAST SOURCE).
removeDropTargetListener in class DropTargetdtl - the DropTargetListener to deregister.public void dragEnter(DropTargetDragEvent e)
DropTargetDropTarget intercepts
dragEnter() notifications before the
registered DropTargetListener gets them.
dragEnter in interface DropTargetListenerdragEnter in class DropTargete - the DropTargetDragEventpublic void dragOver(DropTargetDragEvent e)
DropTargetDropTarget
intercepts dragOver() notifications before the
registered DropTargetListener gets them.
dragOver in interface DropTargetListenerdragOver in class DropTargete - the DropTargetDragEventpublic void dragExit(DropTargetEvent e)
DropTargetDropTarget intercepts
dragExit() notifications before the
registered DropTargetListener gets them.
dragExit in interface DropTargetListenerdragExit in class DropTargete - the DropTargetEventpublic void drop(DropTargetDropEvent e)
DropTargetDropTarget intercepts drop() notifications before the
registered DropTargetListener gets them.
drop in interface DropTargetListenerdrop in class DropTargete - the DropTargetDropEventpublic void dropActionChanged(DropTargetDragEvent e)
DropTargetDropTarget intercepts
dropActionChanged() notifications before the
registered DropTargetListener gets them.
dropActionChanged in interface DropTargetListenerdropActionChanged in class DropTargete - the DropTargetDragEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||