Changes between Version 27 and Version 28 of BASE_DND_R0
- Timestamp:
- 06/01/09 13:11:07 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BASE_DND_R0
v27 v28 102 102 * [source:/trunk/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 103 * [source:/trunk/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:/trunk/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/Dn DProvider.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.104 * [source:/trunk/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 105 * [source:/trunk/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/AwtTransferable.java AwtTransferable] and [source:/trunk/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/SophieTransferable.java SophieTransferable] are the BaseDndTransferable implementations. The AwtTransferable is a BaseDndTransferable for transferring data that comes from AWT to Sophie, as opposed to SophieTransferable which transfers that to Sophie and to Awt. This is needed since we need a way to convert transfers from awt to out own transfers. The AwtTransferable is not suppossed to be inherited. If one wants to provide support for additional DndData, they should implement is and implement a corresponding DndProvider. See [source:/trunk/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/dnddata/ImageDndData.java ImageDndData] and [source:/trunk/sophie2-platform/modules/org.sophie2.base.dnd/src/main/java/org/sophie2/base/dnd/dnddata/StringDndData.java StringDndData] for more information. The SophieTransferable on the other hand should be implemented and should add the DndData that it supports. In addition the deleteOriginal method should be implemented in case the user performs CUT operation. 106 106 * The AwtTransferable is an adapter for awt Transferables.