org.apache.ojb.tools.mapping.reversedb2.dnd2 |
This package contains infrastructure that should make it easier to implement
Drag and Drop in GUIs with JDKs 1.2 and 1.3. These classes do most of the
event handling for you. If you are a Dnd "provider" you have to implement
a Transferable to take the data you want to export and an implementation of
DragCopyCutWorker interface. Basically what you have to do is to read the data
from your model and put it into an transferable.
If you are a DnD "consumer", you have to implement a DropPastWorkerInterface
that accepts at least on flavour of Transferable data and inserts it into the
model.
In this package there is still a lot room for improvements, but it should be
good enough to help you implementing basic DnD (and Clipboard) functionality#
in your application.
|
Java Source File Name | Type | Comment |
DnDWorkerConstants.java | Interface | |
DragCopyCutWorkerInterface.java | Interface | |
DragHelper.java | Class | This class allows you to implement the drag of DnD in your GUI by simply creating
an instance of this class, supplying your implementation of a DragCopyCutWorkerInterface
and register the Component with the helper using registerCopmponent().
If the default implementation of DnD by this class doesn't satisfy your needs
you can override all of the functionality by supplying your own DragGestureListener
and DragSourceListener. |
DropPasteWorkerInterface.java | Interface | This interface is used by DropTargetHelper to determine whether a drop
can be performed and to import the data from the transferable into the
model of the component. |
DropTargetHelper.java | Class | Starting from JDK 1.2 drag and drop was possible for Java applications. |
RejectAllDropWorker.java | Class | |
ReverseDbNodesDragWorker.java | Class | |
ReverseDbNodesDropWorker.java | Class | |