All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.swt.dnd.Transfer.xer.txt Maven / Gradle / Ivy

@xworker.swt.dnd.Transfer
sname
Transfer
slabel
Transfer
sdescriptors
xworker.lang.MetaDescriptor3,xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
Sdescription
#$@text#$@

Transfer provides a mechanism for converting between a java representation of data and a platform specific representation of data and vice versa. It is used in data transfer operations such as drag and drop and clipboard copy/paste.

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

#$@text#$@ sth_createIndex false @xworker.swt.dnd.Transfer/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sth_createIndex false @xworker.swt.dnd.Transfer/@actions/@create sname create sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.dnd.TransferCreator smethodName create sdisableGlobalContext false sdescriptors xworker.lang.actions.JavaAction sth_createIndex false @xworker.swt.dnd.Transfer/@name sname name slabel 名称 LvalidateOnBlur false LallowDecimals false LallowNegative false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @xworker.swt.dnd.Transfer/@label sname label slabel 标签 LvalidateOnBlur false LallowDecimals false LallowNegative false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @xworker.swt.dnd.Transfer/@type sname type slabel 类型 sinputtype inputSelect Sdescription #$@text#$@

可以选择已有的类型也可以输入新的类型。

如果选择已有的类型,那么返回swt定义的类型。如果输入新的类型,那么必须要实现以下方法:

getSupportedTypes

public abstract TransferData[] getSupportedTypes()
Returns a list of the platform specific data types that can be converted using this transfer agent.

Only the data type fields of the TransferData objects are filled in.

 

返回:
a list of the data types that can be converted using this transfer agent

isSupportedType

public abstract boolean isSupportedType(TransferData transferData)
Returns true if the TransferData data type can be converted using this transfer agent, or false otherwise (including if transferData is null).

 

参数:
transferData - a platform specific description of a data type; only the data type fields of the TransferData object need to be filled in
返回:
true if the transferData data type can be converted using this transfer agent

另外程序会自动调用registerType方法注册新类型,类型的id号放在type字段里。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @xworker.swt.dnd.Transfer/@type/@File sname File slabel File svalue File sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @xworker.swt.dnd.Transfer/@type/@HTML sname HTML slabel HTML svalue HTML sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @xworker.swt.dnd.Transfer/@type/@Image sname Image slabel Image svalue Image sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @xworker.swt.dnd.Transfer/@type/@RTF sname RTF slabel RTF svalue RTF sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @xworker.swt.dnd.Transfer/@type/@Text sname Text slabel Text svalue Text sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @xworker.swt.dnd.Transfer/@type/@URL sname URL slabel URL svalue URL sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @xworker.swt.dnd.Transfer/@actions1 sname actions slabel Actions sdescriptors xworker.lang.MetaDescriptor2/@thing sextends xworker.lang.actions.Actions sid actions szh_label 动作 @xworker.swt.dnd.Transfer/@actions1/@name sname name sid name sdescriptors xworker.lang.MetaDescriptor2/@attribute




© 2015 - 2025 Weber Informatics LLC | Privacy Policy