Class ObjectTransfer
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
org.apache.uima.caseditor.editor.util.ObjectTransfer
- Direct Known Subclasses:
FeatureStructureTransfer
public abstract class ObjectTransfer
extends org.eclipse.swt.dnd.ByteArrayTransfer
This class is able to transfer an
Object
object. The object gets saved and only an Id is
transfered.-
Constructor Summary
ModifierConstructorDescriptionprotected
ObjectTransfer
(String name) Initializes a new instance with a name. -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
protected String[]
protected void
javaToNative
(Object object, org.eclipse.swt.dnd.TransferData transferData) protected Object
nativeToJava
(org.eclipse.swt.dnd.TransferData transferData) Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedType
Methods inherited from class org.eclipse.swt.dnd.Transfer
registerType, validate
-
Constructor Details
-
ObjectTransfer
Initializes a new instance with a name.- Parameters:
name
- - the name of current instance.
-
-
Method Details
-
javaToNative
- Overrides:
javaToNative
in classorg.eclipse.swt.dnd.ByteArrayTransfer
-
nativeToJava
- Overrides:
nativeToJava
in classorg.eclipse.swt.dnd.ByteArrayTransfer
-
getTypeIds
protected int[] getTypeIds()- Specified by:
getTypeIds
in classorg.eclipse.swt.dnd.Transfer
-
getTypeNames
- Specified by:
getTypeNames
in classorg.eclipse.swt.dnd.Transfer
-