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 boolean
canSetValue
(T value) final T
get()
protected int[]
protected String[]
Returns the underlying value.void
javaToNative
(Object object, TransferData transferData) nativeToJava
(TransferData transferData) final void
void
setValue
(DragSourceEvent e, T value) Sets the underlying value.Methods inherited from class com.diffplug.common.swt.dnd.TypedTransfer
canSetValueNonnull, mapDrag, mapDrop
Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedType
Methods inherited from class org.eclipse.swt.dnd.Transfer
registerType, validate
-
Constructor Details
-
CustomLocalTransfer
protected CustomLocalTransfer()
-
-
Method Details
-
getTypeIds
protected int[] getTypeIds()- Specified by:
getTypeIds
in classTransfer
-
getTypeNames
- Specified by:
getTypeNames
in classTransfer
-
javaToNative
- Overrides:
javaToNative
in classByteArrayTransfer
-
nativeToJava
- Overrides:
nativeToJava
in classByteArrayTransfer
-
canSetValue
- Overrides:
canSetValue
in classTypedTransfer<T>
-
getValue
Returns the underlying value.- Specified by:
getValue
in classTypedTransfer<T>
-
setValue
Sets the underlying value.- Specified by:
setValue
in classTypedTransfer<T>
-
set
-
get
-