harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Harmony Wiki] Update of "Drag and Drop" by AlexeiFedotov
Date Wed, 26 Mar 2008 17:01:21 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by AlexeiFedotov:
http://wiki.apache.org/harmony/Drag_and_Drop

------------------------------------------------------------------------------
+ === AWT Data Transfer ===
+ 
+ ==== Pre-reading ====
+ Please refer to http://java.sun.com/j2se/1.5.0/docs/api/java/awt/datatransfer/package-summary.html
for general information on AWT data transfer.
+ See the drag-and-drop specification and tutorial at http://java.sun.com/j2se/1.5.0/docs/guide/dragndrop/index.html.
+ 
+ ==== Data Flavors ====
+ The mapping between the Java type and content type is the <code>SystemFlavorMap</code>.
The mapping between content type and native format is hard-coded as long as each native format
needs some code to perform the conversion. Harmony implementation does the data conversion
is performed in two steps: from Java to intermediate format (which is platform-independent,
and is one of content types listed above), then from intermediate format to the platform-dependent
native format. The conversion from native format to Java is performed also in two steps: from
native to intermediate, then from intermediate to Java. 
+ 
+ The table below shows the mapping of data flavors to supported native Windows formats.
+ ||'''Java type'''||'''Content type'''||'''Native format on Windows'''||
+ ||<code>String char[] InputStream</code>|| text/plain || CF_TEXT CF_UNICODETEXT
||
+ ||<code>Image</code>, <code>BufferedImage</code>||image/x-java-image||
CF_DIB (device independent bitmap) CF_ENHMETAFILE||
+ ||<code>Java.net.URL</code>||	application/x-java-url||	CFSTR_INETURLW CFSTR_INETURLA||
+ ||<code>String char[] InputStream</code>|| text/html ||	"HTML Format" ||
+ ||<code>Java.util.List||	application/x-java-file-list||	CF_HDROP||
+ ||<code>Java.lang.Serializable</code>||	application/x-java-serialized-object||
org.apache.harmony.awt.datatransfer: application/x-java-serialized-object; class= ||
+ 
+ 
  === Drag and Drop Development Plan ===
  
  ==== AWT/Windows (6w) ====

Mime
View raw message