JGraph
v3.3


org.jgraph.plaf.basic
Class TransferHandler.SwingDropTarget

java.lang.Object
  |
  +--java.awt.dnd.DropTarget
        |
        +--org.jgraph.plaf.basic.TransferHandler.SwingDropTarget
All Implemented Interfaces:
DropTargetListener, EventListener, Serializable, UIResource
Enclosing class:
TransferHandler

public static class TransferHandler.SwingDropTarget
extends DropTarget
implements UIResource

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.

See Also:
Serialized Form

Inner classes inherited from class java.awt.dnd.DropTarget
DropTarget.DropTargetAutoScroller
 
Constructor Summary
TransferHandler.SwingDropTarget(JComponent c)
           
 
Method Summary
 void addDropTargetListener(DropTargetListener dtl)
           
 void dragEnter(DropTargetDragEvent e)
           
 void dragExit(DropTargetEvent e)
           
 void dragOver(DropTargetDragEvent e)
           
 void drop(DropTargetDropEvent e)
           
 void dropActionChanged(DropTargetDragEvent e)
           
 void removeDropTargetListener(DropTargetListener dtl)
           
 
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
 

Constructor Detail

TransferHandler.SwingDropTarget

public TransferHandler.SwingDropTarget(JComponent c)
Method Detail

addDropTargetListener

public void addDropTargetListener(DropTargetListener dtl)
                           throws TooManyListenersException
Overrides:
addDropTargetListener in class DropTarget

removeDropTargetListener

public void removeDropTargetListener(DropTargetListener dtl)
Overrides:
removeDropTargetListener in class DropTarget

dragEnter

public void dragEnter(DropTargetDragEvent e)
Overrides:
dragEnter in class DropTarget

dragOver

public void dragOver(DropTargetDragEvent e)
Overrides:
dragOver in class DropTarget

dragExit

public void dragExit(DropTargetEvent e)
Overrides:
dragExit in class DropTarget

drop

public void drop(DropTargetDropEvent e)
Overrides:
drop in class DropTarget

dropActionChanged

public void dropActionChanged(DropTargetDragEvent e)
Overrides:
dropActionChanged in class DropTarget

JGraph
v3.3


Copyright (C) 2001-2004 JGraph.org. All rights reserved.