Changes between Version 22 and Version 23 of BASE_DND_R0


Ignore:
Timestamp:
05/29/09 12:42:51 (16 years ago)
Author:
peko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BASE_DND_R0

    v22 v23  
    9898 * A new package org.sophie2.base.dnd will be created. 
    9999 * The following new classes will be defined: 
    100   * ClipboardManager - a Singleton class used to wrap the functionality for Cut/Copy/Paste operations with data and the work with the Clipboard. the System Clipboard will be used for now, but the abstraction allows to add special Clipboard functionality later (e.g. multiple custom clipboards created by name, allowing to switch between them) 
    101   * DnDData hierarchy - wraps the data needing serialization/deserialization along with information about the wanted DataFlavor (DataFlavor usage is hidden from the client code). 
    102   * DnDTransferable - contains the different representaions in which data could be serialized/deserialized, including its supported types. Implements the actual mapping data to DataFlavor. 
    103   * TransferableConverter - a Utility class providing functionality to convert from DnDTransferable to Transferable and vice-versa. 
    104   * DnDDataProvider interface and its implementor SimpleDnDDataProvider - defines Sophie extension for creation of DnDData objects. 
    105 [[Image(source:/branches/private/vlado/sophie2-platform/doc/uml-design-diagrams/DnDDesign.png)]] 
    106  
     100  * [source:/branches/private/peko/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/ClipboardManager.java ClipboardManager] - a Singleton class used to wrap the functionality for Cut/Copy/Paste operations with data and the work with the system Clipboard internally. the System Clipboard will be used for now, but the abstraction allows to add special Clipboard functionality later (e.g. multiple custom clipboards created by name, allowing to switch between them etc.) 
     101  * [source:/branches/private/peko/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/DnDData.java DnDData] hierarchy - wraps the transferred data. It is connected internally with the system clipboard data through DataFlavors. (DataFlavor usage is hidden from the client code). 
     102  * [source:/branches/private/peko/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/DndTransferable.java DndTransferable] - an interface, representing the common functionality of the different implementations of transferables. 
     103   * [source:/branches/private/peko/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/BaseDndTransferable.java BaseDndTransferable] is a class that implements most of DndTransferable. See the javadoc for more info. 
     104  * [source:/branches/private/peko/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/DnDProvider.java DnDProvider] is an interface that defines Sophie extension point for creation of DnDData objects. Every DndData would have a corresponding DnDProvider that creates the DndData. Extensions will be defined only for DndData that come from AWT. 
     105[[Image(source:/branches/private/peko/sophie2-platform/doc/uml-design-diagrams/base-dnd-uml.png)]] 
    107106 * Available transfers: http://spreadsheets.google.com/ccc?key=r4yyW_VIrTvloMDKwpfWtag 
    108107 * The following operations are supported: 
     
    145144     * Outside Sophie2 
    146145  * Cut - implemented as Copy + Delete (which is the typical behavior) 
    147 [[Image(source:/branches/private/vlado/sophie2-platform/doc/uml-design-diagrams/DnDActivity.png)]] 
    148146 
    149147 * Handling for Cut/Copy/Paste keyboard shortcuts should be added