Package dsto.dfc.swing.dnd

Extensions to the AWT Drag and Drop/Copy and Paste packages.

See:
          Description

Interface Summary
ClipboardListener Listener interface for ClipboardManager events.
CnpProvider Defines a object that supports cut, copy and paste operations.
DragComponent Defines a component that supports drag actions.
DragDropComponent Covenience interface for components that implement both DragComponent and DropComponent.
DropComponent Defines a component that supports drop actions.
 

Class Summary
AbstractCnpCommand Abstract base class for clipboard based commands operating on a CnpProvider.
ClipboardEvent Fired by the ClipboardManager when the clipboard changes.
ClipboardManager Provides centralised clipboard management.
CmdCopy Copy from a CnpProvider to the system clipboard.
CmdCut Cut from a CnpProvider to the system clipboard.
CmdPaste Paste from the system clipboard to a CnpProvider.
DfcMouseDragGestureRecognizer A simple mouse-based drag gesture recogniser that only triggers drag and drop actions on MOUSE_DRAGGED events.
DragSourceAdapter A drag source listener that manages drag gestures for a DragComponent.
DropTargetAdapter A drop target listener manages drop actions for a DropComponent.
MissingDataTransferable Defines a Transferable where data is unavailable.
ObjectTransferable Allows any object or array of objects to be stored as a Transferable.
RawSerializedObject Stores an object as a serialized blob of data.
 

Package dsto.dfc.swing.dnd Description

Extensions to the AWT Drag and Drop/Copy and Paste packages.

Drag and drop support

The dsto.dfc.dnd.DragComponent and dsto.dfc.dnd.DropComponent interfaces make it easier to add drag/drop support to a component. For components that support these interfaces, drag and drop support can be added by creating a dsto.dfc.dnd.DragSourceAdapter or dsto.dfc.dnd.DropTargetAdapter to manage drag and drop.

Dynamic change notification support

Limited support for change notification to a clipboard is supported via the dsto.dfc.dnd.ClipboardManager class in concert with the dsto.dfc.dnd.CmdCopy and dsto.dfc.dnd.CmdCut classes.



Copyright © 2008 Commonwealth of Australia