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

xworker.swt.xwidgets.ObjectTable.xer.txt Maven / Gradle / Ivy

^1449725838888
@
sname
ObjectTable
slabel
ObjectTable
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.swt.layout.LayoutDatas,xworker.swt.widgets.Table
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@

对象表格,把List<Object>显示在表格里。

对象和表格的匹配

    在setListData时指定参数type的值,type的值和ObjectMapping的type属性匹配,如果相等则使用该ObjectMapping。

数据对象和Java对象

    生成的表格的每一行item.getData()返回的是DataObject,通过它执行doAction("getData", actionContext)方法可以返回Java对象。

表格编辑

    如果表格可以编辑,那么在映射时需要映射一个关键字字段,否则数据对象不能保存到对应的Java对象中。

单独保存数据对象

    获取数据对象后,可以调用doAction("updateData", actionContext)方法来把数据对象的值保存到Java对象中。

主要方法:

  • setListData(List<Object> datas, String type)
    设置要在表格中显示的对象列表。

 

#$@text#$@ snotXmlAttribute false sjson_isArray false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions/@create sname create sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.xwidgets.ObjectTable smethodName create sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sdebugLog false sdescriptors xworker.lang.actions.Actions/@JavaAction sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions/@setObject sname setListData sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.xwidgets.ObjectTable smethodName setListData sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sdebugLog false sdescriptors xworker.lang.actions.Actions/@JavaAction sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions/@setObject/@ins sisValidate false sname ins sdescriptors xworker.lang.actions.Inout/@ins sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions/@setObject/@ins/@datas sname datas stype List stypeCheck false soptional true scheck false scheckLevel exception sdescriptors xworker.lang.actions.Inout/@ins/@param sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions/@setObject/@ins/@type sname type stype String stypeCheck false soptional true scheck false scheckLevel exception sdescriptors xworker.lang.actions.Inout/@ins/@param sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@name sname name sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@label sname label sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@object sname listData sshowLabel true ssize 50 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@description sname description sinputtype html sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DataObjectMapping sname ObjectMapping sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.dataObject.java.ListDataObject smany true seditCols 2 sinitialization false smodifier public sinheritDescription false snotXmlAttribute false sjson_isArray false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DataObjectMapping/@name sname name sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DataObjectMapping/@label sname label sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DataObjectMapping/@type sname type sshowLabel true ssize 60 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DataObjectMapping/@listData sname listData sinputtype text sshowLabel true ssize 60 scolspan 2 sgroup Default sreadOnly false sdefault datas sinheritDescription false sdescription

Ognl表达式,从actionContext获取List。

svalidateAllowBlank true LvalidateOnBlur false LallowDecimals false LallowNegative false snotXmlAttribute false sid listData sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@DefaultMapping sname DefaultMapping sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.dataObject.java.ListDataObject smany true seditCols 2 sinitialization false smodifier public sinheritDescription false snotXmlAttribute false sjson_isArray false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DefaultMapping/@name sname name sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DefaultMapping/@label sname label sshowLabel true sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@DefaultMapping/@listData sname listData sinputtype text sshowLabel true ssize 60 scolspan 2 sgroup Default sreadOnly false sdefault datas sinheritDescription false sdescription

Ognl表达式,从actionContext获取List。

svalidateAllowBlank true LvalidateOnBlur false LallowDecimals false LallowNegative false snotXmlAttribute false sid listData sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@table sname table sselectStyle SINGLE sV_SCROLL true sH_SCROLL true sCHECK false sFULL_SELECTION true sHIDE_SELECTION true sBORDER false slineVisible true smultipleColumns true sheaderVisible true ssortIndicator true smoveableColumns true sheadImages false ssubImages false sVIRTUAL false scapture false senabled true sredraw true svisible true sxw_cl_global false sdescriptors xworker.swt.widgets.Table sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@table/@DataStore sname dataStore sattachToParent true sloadBackground true sautoLoad true sautoSave true spaging extend spageSize 50 sstoreSortField _extend sstoreSortDir ASC seditable extend seditmethod extend sdescriptors xworker.swt.widgets.Table/@DataStore sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false