|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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
DropTarget
DropTargetListener
(UNICAST SOURCE).
addDropTargetListener
in class DropTarget
dtl
- The new DropTargetListener
TooManyListenersException
public void removeDropTargetListener(DropTargetListener dtl)
DropTarget
DropTargetListener
(UNICAST SOURCE).
removeDropTargetListener
in class DropTarget
dtl
- the DropTargetListener to deregister.public void dragEnter(DropTargetDragEvent e)
DropTarget
DropTarget
intercepts
dragEnter() notifications before the
registered DropTargetListener
gets them.
dragEnter
in interface DropTargetListener
dragEnter
in class DropTarget
e
- the DropTargetDragEvent
public void dragOver(DropTargetDragEvent e)
DropTarget
DropTarget
intercepts dragOver() notifications before the
registered DropTargetListener
gets them.
dragOver
in interface DropTargetListener
dragOver
in class DropTarget
e
- the DropTargetDragEvent
public void dragExit(DropTargetEvent e)
DropTarget
DropTarget
intercepts
dragExit() notifications before the
registered DropTargetListener
gets them.
dragExit
in interface DropTargetListener
dragExit
in class DropTarget
e
- the DropTargetEvent
public void drop(DropTargetDropEvent e)
DropTarget
DropTarget
intercepts drop() notifications before the
registered DropTargetListener
gets them.
drop
in interface DropTargetListener
drop
in class DropTarget
e
- the DropTargetDropEvent
public void dropActionChanged(DropTargetDragEvent e)
DropTarget
DropTarget
intercepts
dropActionChanged() notifications before the
registered DropTargetListener
gets them.
dropActionChanged
in interface DropTargetListener
dropActionChanged
in class DropTarget
e
- the DropTargetDragEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |