Package com._1c.g5.v8.dt.moxel
Class MoxelDescriptorTransfer
- java.lang.Object
- 
- org.eclipse.swt.dnd.Transfer
- 
- org.eclipse.swt.dnd.ByteArrayTransfer
- 
- com._1c.g5.v8.dt.moxel.MoxelDescriptorTransfer
 
 
 
- 
 public class MoxelDescriptorTransfer extends org.eclipse.swt.dnd.ByteArrayTransferThe classMoxelDescriptorTransferprovides a platform specific mechanism for converting moxel document descriptor represented as a javaMoxelDescriptorto a platform specific representation of the data and vice versa.- See Also:
- Transfer
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MoxelDescriptorTransfergetInstance()Returns the singleton instance of the MoxelDescriptorTransfer class.protected int[]getTypeIds()Get array of available type idsprotected String[]getTypeNames()Get array of available type namesvoidjavaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData)This implementation ofjavaToNativeconverts descriptor of moxel document represented by a javaMoxelDescriptorto a platform specific representation.ObjectnativeToJava(org.eclipse.swt.dnd.TransferData transferData)This implementation ofnativeToJavaconverts a platform specific representation of moxel document descriptor to a javaUUID.protected booleanvalidate(Object object)Validate incoming object
 
- 
- 
- 
Method Detail- 
getInstancepublic static MoxelDescriptorTransfer getInstance() Returns the singleton instance of the MoxelDescriptorTransfer class.- Returns:
- the singleton instance of the MoxelDescriptorTransfer class
 
 - 
javaToNativepublic void javaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData) This implementation ofjavaToNativeconverts descriptor of moxel document represented by a javaMoxelDescriptorto a platform specific representation.- Overrides:
- javaToNativein class- org.eclipse.swt.dnd.ByteArrayTransfer
- Parameters:
- object- a java- MoxelDescriptorcontaining moxel document descriptor
- transferData- an empty- TransferDataobject that will be filled in on return with the platform specific format of the data
- See Also:
- Transfer.nativeToJava(org.eclipse.swt.dnd.TransferData)
 
 - 
nativeToJavapublic Object nativeToJava(org.eclipse.swt.dnd.TransferData transferData) This implementation ofnativeToJavaconverts a platform specific representation of moxel document descriptor to a javaUUID.- Overrides:
- nativeToJavain class- org.eclipse.swt.dnd.ByteArrayTransfer
- Parameters:
- transferData- the platform specific representation of the data to be converted
- Returns:
- a java UUIDcontaining document uuid if the conversion was successful; otherwise null
- See Also:
- Transfer.javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)
 
 - 
getTypeNamesprotected String[] getTypeNames() Get array of available type names- Specified by:
- getTypeNamesin class- org.eclipse.swt.dnd.Transfer
- Returns:
- array of available type names
 
 - 
getTypeIdsprotected int[] getTypeIds() Get array of available type ids- Specified by:
- getTypeIdsin class- org.eclipse.swt.dnd.Transfer
- Returns:
- array of available type ids
 
 - 
validateprotected boolean validate(Object object) Validate incoming object- Overrides:
- validatein class- org.eclipse.swt.dnd.Transfer
- Parameters:
- object- - object to validate
- Returns:
- result of validation
 
 
- 
 
-