Package com.diffplug.common.swt.dnd
Class CustomLocalTransfer<T>
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
com.diffplug.common.swt.dnd.TypedTransfer<T>
com.diffplug.common.swt.dnd.CustomLocalTransfer<T>
Custom implementation of a local transfer class. The "data" object will be this Transfer itself.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleancanSetValue(T value) final Tget()protected int[]protected String[]Returns the underlying value.voidjavaToNative(Object object, TransferData transferData) nativeToJava(TransferData transferData) final voidvoidsetValue(DragSourceEvent e, T value) Sets the underlying value.Methods inherited from class com.diffplug.common.swt.dnd.TypedTransfer
canSetValueNonnull, mapDrag, mapDropMethods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedTypeMethods inherited from class org.eclipse.swt.dnd.Transfer
registerType, validate
-
Constructor Details
-
CustomLocalTransfer
protected CustomLocalTransfer()
-
-
Method Details
-
getTypeIds
protected int[] getTypeIds()- Specified by:
getTypeIdsin classTransfer
-
getTypeNames
- Specified by:
getTypeNamesin classTransfer
-
javaToNative
- Overrides:
javaToNativein classByteArrayTransfer
-
nativeToJava
- Overrides:
nativeToJavain classByteArrayTransfer
-
canSetValue
- Overrides:
canSetValuein classTypedTransfer<T>
-
getValue
Returns the underlying value.- Specified by:
getValuein classTypedTransfer<T>
-
setValue
Sets the underlying value.- Specified by:
setValuein classTypedTransfer<T>
-
set
-
get
-