Top Description Fields Constructors Methods
org.eclipse.swt.dnd

public Class TransferData

extends Object
Class Inheritance

The TransferData class is a platform specific data structure for describing the type and the contents of data being converted by a transfer agent.

As an application writer, you do not need to know the specifics of TransferData. TransferData instances are passed to a subclass of Transfer and the Transfer object manages the platform specific issues. You can ask a Transfer subclass if it can handle this data by calling Transfer.isSupportedType(transferData).

You should only need to become familiar with the fields in this class if you are implementing a Transfer subclass and you are unable to subclass the ByteArrayTransfer class.

See Also
Sample code and further information

Field Summary

Modifier and TypeField and Description
public int
format

Specifies the size in bits of a single unit in pValue.

public int
length

Specifies the number of units in pValue.

public long
pValue

Pointer to the data being transferred.

public int
result

The result field contains the result of converting a java data type into a platform specific value.

public long
type

The type is a unique identifier of a system format or user defined format.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

formatback to summary
public int format

Specifies the size in bits of a single unit in pValue. (Warning: This field is platform dependent)

Important Note

This field is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms and should never be accessed from application code.

This is most commonly 8 bits.
lengthback to summary
public int length

Specifies the number of units in pValue. (Warning: This field is platform dependent)

Important Note

This field is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms and should never be accessed from application code.

See Also
{@link TransferData#format} for the size of one unit
pValueback to summary
public long pValue

Pointer to the data being transferred. (Warning: This field is platform dependent)

Important Note

This field is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms and should never be accessed from application code.

resultback to summary
public int result

The result field contains the result of converting a java data type into a platform specific value. (Warning: This field is platform dependent)

Important Note

This field is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms and should never be accessed from application code.

The value of result is 1 if the conversion was successful. The value of result is 0 if the conversion failed.

typeback to summary
public long type

The type is a unique identifier of a system format or user defined format. (Warning: This field is platform dependent)

Important Note

This field is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms and should never be accessed from application code.

Constructor Detail

TransferDataback to summary
public TransferData()