Changeset 270:58ef057b3e9d

Show
Ignore:
Timestamp:
07/06/08 09:37:36 (3 months ago)
Author:
Frank Benoit <benoit@tionex.de>
Parents:

269:11015f58425e 258:0389eeb717f8

branch:
default
Message:

merge

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dnd/RTFTransfer.d

    r258 r270  
    11/******************************************************************************* 
    2  * Copyright (c) 2000, 2005 IBM Corporation and others. 
     2 * Copyright (c) 2000, 2008 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
    44 * are made available under the terms of the Eclipse Public License v1.0 
     
    2525 * The class <code>RTFTransfer</code> provides a platform specific mechanism 
    2626 * for converting text in RTF format represented as a java <code>String</code> 
    27  * to a platform specific representation of the data and vice versa.  See 
    28  * <code>Transfer</code> for additional information. 
     27 * to a platform specific representation of the data and vice versa. 
    2928 * 
    3029 * <p>An example of a java <code>String</code> containing RTF text is shown 
     
    3433 *     String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; 
    3534 * </code></pre> 
     35 * 
     36 * @see Transfer 
    3637 */ 
    3738public class RTFTransfer : ByteArrayTransfer { 
     
    6667 * This implementation of <code>javaToNative</code> converts RTF-formatted text 
    6768 * represented by a java <code>String</code> to a platform specific representation. 
    68  * For additional information see <code>Transfer#javaToNative</code>. 
    6969 * 
    7070 * @param object a java <code>String</code> containing RTF text 
    71  * @param transferData an empty <code>TransferData</code> object; this 
    72  *  object will be filled in on return with the platform specific format of the data 
     71 * @param transferData an empty <code>TransferData</code> object that will 
     72 *      be filled in on return with the platform specific format of the data 
     73 * 
     74 * @see Transfer#nativeToJava 
    7375 */ 
    7476public override void javaToNative (Object object, TransferData transferData){ 
     
    9193 * This implementation of <code>nativeToJava</code> converts a platform specific 
    9294 * representation of RTF text to a java <code>String</code>. 
    93  * For additional information see <code>Transfer#nativeToJava</code>. 
    9495 * 
    95  * @param transferData the platform specific representation of the data to be 
    96  * been converted 
    97  * @return a java <code>String</code> containing RTF text if the 
    98  * conversion was successful; otherwise null 
     96 * @param transferData the platform specific representation of the data to be converted 
     97 * @return a java <code>String</code> containing RTF text if the conversion was successful; 
     98 *      otherwise null 
     99 * 
     100 * @see Transfer#javaToNative 
    99101 */ 
    100102public override Object nativeToJava(TransferData transferData){