Package org.csstudio.ui.util.dnd
Class SerializableItemTransfer
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
org.csstudio.ui.util.dnd.SerializableItemTransfer
Drag-and-Drop Transfer for any serializable object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SerializableItemTransfer
getTransfer
(Class<? extends Serializable> clazz) static SerializableItemTransfer
getTransfer
(String className) static Transfer[]
getTransfers
(Class[] classes) static Collection<Transfer>
getTransfers
(Collection<String> classeNames) protected int[]
protected String[]
void
javaToNative
(Object object, TransferData transferData) Serialize itemnativeToJava
(TransferData transferData) De-serialize itemstoString()
Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedType
Methods inherited from class org.eclipse.swt.dnd.Transfer
registerType, validate
-
Method Details
-
getTransfers
- Parameters:
classes
- Types to be transferred- Returns:
- Transfers for those types
-
getTransfers
-
getTransfer
-
getTransfer
- Parameters:
className
- Type to be transferred- Returns:
- Transfer for that type
-
getTypeIds
protected int[] getTypeIds()- Specified by:
getTypeIds
in classTransfer
-
getTypeNames
- Specified by:
getTypeNames
in classTransfer
-
getClassName
-
javaToNative
Serialize item- Overrides:
javaToNative
in classByteArrayTransfer
-
nativeToJava
De-serialize items- Overrides:
nativeToJava
in classByteArrayTransfer
-
toString
-