简体   繁体   English

编辑器框架中的GWT异构列表

[英]GWT heterogenous lists in editors framework

There's a class hierarchy like this: 有一个这样的类层次结构:

interface Item {
}

interface ItemType1 extends Item {
  String getItemType1Data();
}

interface ItemType2 extends Item {
  String getItemType2Data();
}

I have a List of Item objects that I'd like to display in UI (view only). 我有一个要在UI中显示的Item对象的List (仅查看​​)。 Is it possible with GWT editors framework? GWT编辑器框架可能吗? (Please no advices related with my class hierarchy - like moving getData() to Item ) (请不要提出与我的班级层次结构有关的任何建议,例如将getData()移至Item

Any thoughts? 有什么想法吗?

请参阅http://code.google.com/p/google-web-toolkit/issues/detail?id=6719,以及将GWT编辑器用于复杂的用例 (仅供参考,BobV是编辑器框架的创建者)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM