Package 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.

See:
          Description

Interface Summary
DnDWorkerConstants This interface just contains the constants used within the DnD framework
DragCopyCutWorkerInterface Implementers of this interface are used by DragHelper to query the possible actions for a drag gesture and to export the data into a Transferable
DropPasteWorkerInterface 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.
 

Class Summary
DragHelper 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().
DropTargetHelper Starting from JDK 1.2 drag and drop was possible for Java applications.
RejectAllDropWorker  
ReverseDbNodesDragWorker  
ReverseDbNodesDropWorker  
 

Package org.apache.ojb.tools.mapping.reversedb2.dnd2 Description

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.



Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14