Package org.eclipse.rap.rwt.dnd
Class ClientFileTransfer
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.rap.rwt.dnd.ClientFileTransfer
The class 
ClientFileTransfer allows the user to drop files from the user's file
 system on a DropTarget. The DropEvent will contain data of the type
 ClientFile[].- Since:
- 2.3
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic ClientFileTransferReturns a list of the platform specific data types that can be converted using this transfer agent.protected int[]Returns the platform specific ids of the data types that can be converted using this transfer agent.protected String[]Returns the platform specific names of the data types that can be converted using this transfer agent.booleanisSupportedType(TransferData transferData) Returns true if theTransferDatadata type can be converted using this transfer agent, or false otherwise (including if transferData isnull).voidjavaToNative(Object object, TransferData transferData) Converts a java representation of data to a platform specific representation of the data.nativeToJava(TransferData transferData) Converts a platform specific representation of data to a java representation.Methods inherited from class org.eclipse.swt.dnd.TransferregisterType, validate
- 
Method Details- 
getInstance
- 
getSupportedTypesDescription copied from class:TransferReturns a list of the platform specific data types that can be converted using this transfer agent.Only the data type fields of the TransferDataobjects are filled in.- Specified by:
- getSupportedTypesin class- Transfer
- Returns:
- a list of the data types that can be converted using this transfer agent
 
- 
isSupportedTypeDescription copied from class:TransferReturns true if theTransferDatadata type can be converted using this transfer agent, or false otherwise (including if transferData isnull).- Specified by:
- isSupportedTypein class- Transfer
- Parameters:
- transferData- a platform specific description of a data type; only the data type fields of the- TransferDataobject need to be filled in
- Returns:
- true if the transferData data type can be converted using this transfer agent
 
- 
getTypeIdsprotected int[] getTypeIds()Description copied from class:TransferReturns the platform specific ids of the data types that can be converted using this transfer agent.- Specified by:
- getTypeIdsin class- Transfer
- Returns:
- the platform specific ids of the data types that can be converted using this transfer agent
 
- 
getTypeNamesDescription copied from class:TransferReturns the platform specific names of the data types that can be converted using this transfer agent.- Specified by:
- getTypeNamesin class- Transfer
- Returns:
- the platform specific names of the data types that can be converted using this transfer agent.
 
- 
javaToNativeDescription copied from class:TransferConverts a java representation of data to a platform specific representation of the data.On a successful conversion, the transferData.result field will be set to 1. If this transfer agent is unable to perform the conversion, the transferData.result field will be set to a failure value of 0. IMPORTANT: This method is not part of the RWT public API. It is marked public only so that it can be shared within the packages provided by RWT. It should never be accessed from application code. - Specified by:
- javaToNativein class- Transfer
- Parameters:
- object- a java representation of the data to be converted; the type of Object that is passed in is dependent on the- Transfersubclass.
- transferData- an empty TransferData object; this object will be filled in on return with the platform specific representation of the data
 
- 
nativeToJavaDescription copied from class:TransferConverts a platform specific representation of data to a java representation.IMPORTANT: This method is not part of the RWT public API. It is marked public only so that it can be shared within the packages provided by RWT. It should never be accessed from application code. - Specified by:
- nativeToJavain class- Transfer
- Parameters:
- transferData- the platform specific representation of the data to be converted
- Returns:
- a java representation of the converted data if the conversion was
         successful; otherwise null. If transferData is nullthennullis returned. The type of Object that is returned is dependent on theTransfersubclass.
 
 
-