0
私はExt GWT 3(ベータ版)アプリケーションを開発中です。BeanパスをExt GWTグリッドの単純な文字列プロパティに変換する
Grid
に依存するBeanの単純な値を表示しようとしています。
マイデータ豆
は次のようになります。public class MyBean {
private String content;
private MyOtherBean otherBean;
// getters and setters here...
}
public class MyOtherBean {
private String otherBeanContent;
// getter and setter here...
}
はPropertyAccess
は、次のようになります。対応ColumnConfiguration
で
interface MyBeanProperties extends PropertyAccess<MyBean> {
ModelKeyProvider<MyBean> key();
ValueProvider<MyBean, String> content();
ValueProvider<MyBean, MyOtherBean> otherBean();
}
、私のグリッドは今MyBean
のcontent
1列とで一つの列を表示しますMyOtherBean
のtoString()
。
代わりに(MyOtherBean
のtoString()
を変更せずに)MyOtherBean.otherBeanContent
と表示したいとします。
私はある種の価値コンバーターが必要であり、それを列に登録する必要があると思いますか?あるいは、ここで間違ったアプローチをしていますか?