comparison dwt/dnd/TransferData.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children d8635bb48c7c
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 module dwt.dnd;
12
13
14 /**
15 * The <code>TransferData</code> class is a platform specific data structure for
16 * describing the type and the contents of data being converted by a transfer agent.
17 *
18 * <p>As an application writer, you do not need to know the specifics of
19 * TransferData. TransferData instances are passed to a subclass of Transfer
20 * and the Transfer object manages the platform specific issues.
21 * You can ask a Transfer subclass if it can handle this data by calling
22 * Transfer.isSupportedType(transferData).</p>
23 *
24 * <p>You should only need to become familiar with the fields in this class if you
25 * are implementing a Transfer subclass and you are unable to subclass the
26 * ByteArrayTransfer class.</p>
27 */
28 public class TransferData {
29 /**
30 * The type is a unique identifier of a system format or user defined format.
31 * (Warning: This field is platform dependent)
32 * <p>
33 * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT
34 * public API. It is marked public only so that it can be shared
35 * within the modules provided by DWT. It is not available on all
36 * platforms and should never be accessed from application code.
37 * </p>
38 */
39 public int type;
40
41 /**
42 * The data being transferred.
43 * The data field may contain multiple values.
44 * (Warning: This field is platform dependent)
45 * <p>
46 * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT
47 * public API. It is marked public only so that it can be shared
48 * within the modules provided by DWT. It is not available on all
49 * platforms and should never be accessed from application code.
50 * </p>
51 */
52 public byte[][] data;
53
54 /**
55 * The result field contains the result of converting a
56 * java data type into a platform specific value.
57 * (Warning: This field is platform dependent)
58 * <p>
59 * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT
60 * public API. It is marked public only so that it can be shared
61 * within the modules provided by DWT. It is not available on all
62 * platforms and should never be accessed from application code.
63 * </p>
64 * <p>The value of result is 1 if the conversion was successful.
65 * The value of result is 0 if the conversion failed.</p>
66 */
67 public int result;
68
69 }