public abstract class CustomLocalTransfer<T> extends TypedTransfer<T> implements Box<T>
Modifier | Constructor and Description |
---|---|
protected |
CustomLocalTransfer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canSetValue(T value) |
T |
get() |
protected int[] |
getTypeIds() |
protected String[] |
getTypeNames() |
T |
getValue(DropTargetEvent e)
Returns the underlying value.
|
void |
javaToNative(Object object,
TransferData transferData) |
Object |
nativeToJava(TransferData transferData) |
void |
set(T value) |
void |
setValue(DragSourceEvent e,
T value)
Sets the underlying value.
|
canSetValueNonnull, mapDrag, mapDrop
getSupportedTypes, isSupportedType
registerType, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected int[] getTypeIds()
getTypeIds
in class Transfer
protected String[] getTypeNames()
getTypeNames
in class Transfer
public void javaToNative(Object object, TransferData transferData)
javaToNative
in class ByteArrayTransfer
public Object nativeToJava(TransferData transferData)
nativeToJava
in class ByteArrayTransfer
protected final boolean canSetValue(@Nullable T value)
canSetValue
in class TypedTransfer<T>
public T getValue(DropTargetEvent e)
getValue
in class TypedTransfer<T>
public void setValue(DragSourceEvent e, T value)
setValue
in class TypedTransfer<T>