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