【发布时间】:2012-06-01 13:01:48
【问题描述】:
为简单起见:
public class Person
{
String name;
Set<Address> addresses;
}
public class Address
{
String city;
String street;
}
与匹配
public interface PersonProxy extends EntityProxy
{
public String getName();
public Set<AdressProxy> getAddresses();
}
和
public interface AdressProxy extends EntityProxy
{
public String getCity();
public String getStreet();
}
我有 UiBuinder 类来编辑 AddressProxy 如果我得到 List 但数据是在 Person 类中设置的,我很清楚如何使用 ListEditor 如何使用编辑器框架来编辑它们? 或者当它变成 PersonProxy 时,我如何将 Set 转换为 List?
我尝试放置一种可以实现的适配器编辑器类
LeafValueEditor<Set<AddressProxy>>
然后在 LeafValueEditor.setValue() 内部移动到一个列表并在一个单独的编辑器层次结构上启动一个新的 driver.edit() 来处理列表编辑,但现在很幸运。
【问题讨论】:
标签: gwt requestfactory gwt-editors