Changes between Version 12 and Version 13 of BASE_DND_R2


Ignore:
Timestamp:
09/07/09 16:49:04 (16 years ago)
Author:
tanya
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BASE_DND_R2

    v12 v13  
    7979= Design = 
    8080 * Remove class ResourceData. Create classes ResourceRefData and ResourceRevisionData - implementations of DndDatas for ResourcesR4. 
    81   * ResourceRefData will be used when resource dragged from AllResourcesPalette is dropped in the same book. 
    82   * ResourceRevisionData will be used when resource dragged from AllResourcesPalette is dropped in another book or in another application. 
    83  * In DndData - exportToAwt() should be final. Classes that extends DndData should override exportToBinData(). Resources will be converted to BinData and code that will convert from BinData to InputStream will be hidden. The same when importing a resource. 
     81  * ResourceRefData will be used when resource dragged from AllResourcesPalette is dropped in the same book - the resource won't be copied. 
     82  * ResourceRevisionData will be used when resource dragged from AllResourcesPalette is dropped in another book or in another application - the resource will be copied. 
     83 * In DndData - exportToAwt() should be final. Classes that extends DndData should override exportToBinData(). When exporting, resources will be converted to BinData and code that will convert from BinData to InputStream will be hidden. The same when importing a resource. 
    8484 * Create class FileAccessUtil that will contain helper methods for converting from ResourceRevision to BinData and from BinData to ResourceRevision. 
    8585 * Remove class SophieTransferHandler and create class SophieDragDropHandler that implements DropTargetListener, DragSourceListener, DragGestureListener. 
    8686  * This is done because with TransferHandler from java 1.5 is not possible to get the point of the drop, and Sophie should work with java 1.5, so listeners from java 1.2 will be used. 
    87  * Create classes DndAction, DndExport, DndExportDone, DndPreImport, DndImport - these classes represents transactions that are open when drag'n'drop operation is started. Different transactions are for the different states of the drag'n'drop opeartion. 
     87 * Create classes DndAction, DndExport, DndExportDone, DndPreImport, DndImport - these classes represents transactions that are open when drag'n'drop operation is started. Different transactions are for the different states of the drag'n'drop operation. 
    8888 * Create enum in SophieDragDropHandler TransferEventIds with constants  
    8989  * DND_EXPORT - @EventParams( { DndExport.class, ImmPoint.class }) 
    9090  * DND_IMPORT - @EventParams( { DndImport.class, ImmPoint.class, String.class } 
    9191  * DND_PRE_IMPORT - @EventParams( { DndPreImport.class, ImmPoint.class }) 
    92  * Different menu item will extend AppMenuItem. For every item logic will be created that will handles click over them. 
     92 * Different menu item will extend AppMenuItem. For every item, logic will be created that will handles click over it. 
    9393 
    9494= Implementation =