Changeset 270:58ef057b3e9d
- 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
| r258 |
r270 |
|
| 1 | 1 | /******************************************************************************* |
|---|
| 2 | | * Copyright (c) 2000, 2005 IBM 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 |
|---|
| … | … | |
| 25 | 25 | * The class <code>RTFTransfer</code> provides a platform specific mechanism |
|---|
| 26 | 26 | * 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. |
|---|
| 29 | 28 | * |
|---|
| 30 | 29 | * <p>An example of a java <code>String</code> containing RTF text is shown |
|---|
| … | … | |
| 34 | 33 | * String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; |
|---|
| 35 | 34 | * </code></pre> |
|---|
| | 35 | * |
|---|
| | 36 | * @see Transfer |
|---|
| 36 | 37 | */ |
|---|
| 37 | 38 | public class RTFTransfer : ByteArrayTransfer { |
|---|
| … | … | |
| 66 | 67 | * This implementation of <code>javaToNative</code> converts RTF-formatted text |
|---|
| 67 | 68 | * represented by a java <code>String</code> to a platform specific representation. |
|---|
| 68 | | * For additional information see <code>Transfer#javaToNative</code>. |
|---|
| 69 | 69 | * |
|---|
| 70 | 70 | * @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 |
|---|
| 73 | 75 | */ |
|---|
| 74 | 76 | public override void javaToNative (Object object, TransferData transferData){ |
|---|
| … | … | |
| 91 | 93 | * This implementation of <code>nativeToJava</code> converts a platform specific |
|---|
| 92 | 94 | * representation of RTF text to a java <code>String</code>. |
|---|
| 93 | | * For additional information see <code>Transfer#nativeToJava</code>. |
|---|
| 94 | 95 | * |
|---|
| 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 |
|---|
| 99 | 101 | */ |
|---|
| 100 | 102 | public override Object nativeToJava(TransferData transferData){ |
|---|