Mercurial > projects > dwt-mac
comparison dwt/dnd/Transfer.d @ 122:2e671fa40eec
Ported dwt.dnd, dwt.opengl, dwt.printing and dwt.program
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 31 Dec 2008 21:01:13 +0100 |
parents | cbefbb00a6c9 |
children |
comparison
equal
deleted
inserted
replaced
121:e1c48e37e0f5 | 122:2e671fa40eec |
---|---|
71 * this transfer agent. | 71 * this transfer agent. |
72 * | 72 * |
73 * @return the platform specific ids of the data types that can be converted using | 73 * @return the platform specific ids of the data types that can be converted using |
74 * this transfer agent | 74 * this transfer agent |
75 */ | 75 */ |
76 abstract protected int[] getTypeIds(); | 76 abstract public int[] getTypeIds(); |
77 | 77 |
78 /** | 78 /** |
79 * Returns the platform specific names of the data types that can be converted | 79 * Returns the platform specific names of the data types that can be converted |
80 * using this transfer agent. | 80 * using this transfer agent. |
81 * | 81 * |
82 * @return the platform specific names of the data types that can be converted | 82 * @return the platform specific names of the data types that can be converted |
83 * using this transfer agent. | 83 * using this transfer agent. |
84 */ | 84 */ |
85 abstract protected String[] getTypeNames(); | 85 abstract public String[] getTypeNames(); |
86 | 86 |
87 /** | 87 /** |
88 * Converts a java representation of data to a platform specific representation of | 88 * Converts a java representation of data to a platform specific representation of |
89 * the data. | 89 * the data. |
90 * | 90 * |
113 * | 113 * |
114 * @exception dwt.DWTException <ul> | 114 * @exception dwt.DWTException <ul> |
115 * <li>ERROR_INVALID_DATA - if object does not contain data in a valid format or is <code>null</code></li> | 115 * <li>ERROR_INVALID_DATA - if object does not contain data in a valid format or is <code>null</code></li> |
116 * </ul> | 116 * </ul> |
117 */ | 117 */ |
118 abstract protected void javaToNative (Object object, TransferData transferData); | 118 abstract public void javaToNative (Object object, TransferData transferData); |
119 | 119 |
120 /** | 120 /** |
121 * Converts a platform specific representation of data to a java representation. | 121 * Converts a platform specific representation of data to a java representation. |
122 * | 122 * |
123 * @param transferData the platform specific representation of the data to be | 123 * @param transferData the platform specific representation of the data to be |
126 * @return a java representation of the converted data if the conversion was | 126 * @return a java representation of the converted data if the conversion was |
127 * successful; otherwise null. If transferData is <code>null</code> then | 127 * successful; otherwise null. If transferData is <code>null</code> then |
128 * <code>null</code> is returned. The type of Object that is returned is | 128 * <code>null</code> is returned. The type of Object that is returned is |
129 * dependent on the <code>Transfer</code> subclass. | 129 * dependent on the <code>Transfer</code> subclass. |
130 */ | 130 */ |
131 abstract protected Object nativeToJava(TransferData transferData); | 131 abstract public Object nativeToJava(TransferData transferData); |
132 | 132 |
133 /** | 133 /** |
134 * Registers a name for a data type and returns the associated unique identifier. | 134 * Registers a name for a data type and returns the associated unique identifier. |
135 * | 135 * |
136 * <p>You may register the same type more than once, the same unique identifier | 136 * <p>You may register the same type more than once, the same unique identifier |