Changeset 246:fd9c62a2998e for dwt/dnd/RTFTransfer.d
- Timestamp:
- 07/01/08 04:15:59 (6 months ago)
- Files:
-
- dwt/dnd/RTFTransfer.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dnd/RTFTransfer.d
r237 r246 1 1 /******************************************************************************* 2 * Copyright (c) 2000, 200 4IBM Corporation and others.2 * Copyright (c) 2000, 2008 IBM Corporation and others. 3 3 * All rights reserved. This program and the accompanying materials 4 4 * are made available under the terms of the Eclipse Public License v1.0 … … 29 29 * The class <code>RTFTransfer</code> provides a platform specific mechanism 30 30 * for converting text in RTF format represented as a java <code>String</code> 31 * to a platform specific representation of the data and vice versa. See 32 * <code>Transfer</code> for additional information. 31 * to a platform specific representation of the data and vice versa. 33 32 * 34 33 * <p>An example of a java <code>String</code> containing RTF text is shown … … 38 37 * String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; 39 38 * </code></pre> 39 * 40 * @see Transfer 40 41 */ 41 42 public class RTFTransfer : ByteArrayTransfer { … … 70 71 * This implementation of <code>javaToNative</code> converts RTF-formatted text 71 72 * represented by a java <code>String</code> to a platform specific representation. 72 * For additional information see <code>Transfer#javaToNative</code>.73 73 * 74 74 * @param object a java <code>String</code> containing RTF text 75 * @param transferData an empty <code>TransferData</code> object; this 76 * object will be filled in on return with the platform specific format of the data 75 * @param transferData an empty <code>TransferData</code> object that will 76 * be filled in on return with the platform specific format of the data 77 * 78 * @see Transfer#nativeToJava 77 79 */ 78 80 public void javaToNative (Object object, TransferData transferData){ … … 103 105 * This implementation of <code>nativeToJava</code> converts a platform specific 104 106 * representation of RTF text to a java <code>String</code>. 105 * For additional information see <code>Transfer#nativeToJava</code>.106 107 * 107 * @param transferData the platform specific representation of the data to be 108 * been converted 109 * @return a java <code>String</code> containing RTF text if the 110 * conversion was successful; otherwise null 108 * @param transferData the platform specific representation of the data to be converted 109 * @return a java <code>String</code> containing RTF text if the conversion was successful; 110 * otherwise null 111 * 112 * @see Transfer#javaToNative 111 113 */ 112 114 public Object nativeToJava(TransferData transferData){
