`
陈小猫
  • 浏览: 8840 次
  • 来自: 苏州
社区版块
存档分类
最新评论

ColumnConfig无法使用ModelKeyProvider显示主键值

阅读更多

 

在Property中再增加一个ValueProvider用于添加进ColumnConfig

代码如下:

 

 

import com.google.gwt.editor.client.Editor.Path;

 

 

 

interface ComyBasicProxyProperties extends PropertyAccess<ComyBasicProxy>{

    ModelKeyProvider<ComyBasicProxy> comyId();

    @Path("comyId")

    ValueProvider<ComyBasicProxy, Long> comyIdValue();

    ValueProvider<ComyBasicProxy, String> comyName();

  }

 

ColumnConfig<ComyBasicProxy,Long> comyId=new ColumnConfig<ComyBasicProxy,Long>(props.comyIdValue(),200,"企业ID");

    ColumnConfig<ComyBasicProxy, String> comyName=new ColumnConfig<ComyBasicProxy, String>(props.comyName(),200,"企业名称");

 

参考地址:http://www.sencha.com/forum/showthread.php?203824-How-to-define-a-ColumnConfig-from-a-ModelKeyProvider

0
1
分享到:
评论

相关推荐

    Flex dataGrid 自定义显示列

    DataGrid能够自动绑定到数据源,并根据数据字段创建列,但往往我们需要根据业务需求对列的显示进行定制,比如更改列头、调整列宽、添加样式或者使用自定义渲染器。 首先,我们要理解DataGrid的列配置。在Flex中,每...

    GXT组件使用教程3——Column Group

    在列模型中,你可以使用`ColumnConfig`对象来指定列的属性,包括列宽、标题和数据绑定等。为了创建分组,你需要在`ColumnConfig`中设置`grouped`属性为`true`,并提供分组的标题。 例如: ```java ColumnConfig ...

    GXT组件使用教程4——Aggregation Grid

    在本文中,我们将深入探讨GXT组件的使用,特别是关于Aggregation Grid的教程。GXT是Sencha提供的一款强大的JavaScript库,专为构建企业级Web应用程序而设计,它提供了丰富的UI组件和数据网格功能。Aggregation Grid...

    GXT组件使用教程2——Auto Height Grid

    在本文中,我们将深入探讨GXT组件的使用,特别是关于"Auto Height Grid"的功能。GXT,全称为Ext GWT(Google Web Toolkit),是一个强大的Java库,用于构建复杂的、高性能的Web应用程序。它提供了丰富的用户界面组件...

    dbunit使用实例

    3. **类型不匹配**: 如果遇到类型映射问题,可能需要自定义 `ColumnConfig` 并在数据集中指定。 通过深入理解和熟练使用 DBUnit,你可以更高效地管理测试数据,确保数据库相关的测试更加稳定和可靠。结合 JUnit 或...

    Windchill 之组建构造器原理

    - `tableconfig.setShowCustomViewLink(false)`:设置不显示自定义视图链接。 - `tableconfig.setSelectable(true)`:使表格可选。 - `tableconfig.setLabel(getDisplayLabel("CHOICETABLELABEL"))`:设置组件的...

    reactnativedraggableboard带可排序行和列的滚动组件面板

    columnConfig={[ { id: 1, title: 'Column 1' }, { id: 2, title: 'Column 2' }, // 更多列... ]} cardComponent={(props) =&gt; ( , padding: 10 }}&gt; &lt;Text&gt;{props.card.title} )} /&gt; ); }; export ...

    datatranslator:Data Translator是一个多线程高性能调度程序,可以根据定义的配置处理和转换大型数据文件

    资料翻译器 关于 ...-Dapp.config.columnConfig.path=&lt;columnConfig&gt; -Dapp.config.vendorConfig.path= -Dapp.config.vendorData.path= -Dapp.config.processedData.path=&lt;processedData.path

    JQuery-esqyUI中文-1.2.5API

    1. **对话框(Dialog)**:提供弹出式的窗口,用于显示信息或者进行交互,可设置大小、位置、可拖动、可关闭等属性。 2. **表格(Grid)**:用于展示数据,支持分页、排序、过滤、编辑等功能,可与后台数据库无缝对接。...

    Ext.net TreePanel的Checkbox操作及父子节点联动(修正)

    ColumnConfig column = new ColumnConfig { xtype = "checkcolumn", Header = "选择", DataIndex = "checked", Flex = 1, CheckChange = (sender, e) =&gt; { var node = e.Node; if (node != null) { var ...

    easyui datagrid标题拖拽自定义配置

    纯原创开发,datagrid支持表头拖拽前后,支持浏览器左右跟随鼠标滚动,表头右键支持自定义配置,恢复默认等功能,请访问jquery-easyui-1.5\demo\datagrid\columnConfig.html,所有代码都在该文件中,可以自行抽离或2次扩展

    easyui datagrid自定义标题拖拽配置

    纯原创开发,datagrid支持表头拖拽前后,支持浏览器左右跟随鼠标滚动,表头右键支持自定义配置,恢复默认等功能,请访问jquery-easyui-1.5\demo\datagrid\columnConfig.html,所有代码都在该文件中,可以自行抽离或2次扩展

Global site tag (gtag.js) - Google Analytics