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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Initializes a new instance with a name.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectTransfer

      protected ObjectTransfer(String name)
      Initializes a new instance with a name.
      Parameters:
      name - - the name of current instance.
  • Method Details

    • javaToNative

      protected void javaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData)
      Overrides:
      javaToNative in class org.eclipse.swt.dnd.ByteArrayTransfer
    • nativeToJava

      protected Object nativeToJava(org.eclipse.swt.dnd.TransferData transferData)
      Overrides:
      nativeToJava in class org.eclipse.swt.dnd.ByteArrayTransfer
    • getTypeIds

      protected int[] getTypeIds()
      Specified by:
      getTypeIds in class org.eclipse.swt.dnd.Transfer
    • getTypeNames

      protected String[] getTypeNames()
      Specified by:
      getTypeNames in class org.eclipse.swt.dnd.Transfer