2011-07-19 2 views
0

FilterBuildeのgetValueFieldPropertiesをオーバーライドしたいとします。 私の必要条件は、単純なテキストボックスの代わりに値フィールドのために、選択肢を表示するいくつかの特定のタイプのフィールドです。 私は以下を訪問しました: http://code.google.com/p/smartgwt/source/browse/tags/2.5/main/src/com/smartgwt/client/widgets/form/FilterBuilder.java?r=1796getValueFieldPropertiesをオーバーライドする例FilterBuilder

ありがとうございました。

答えて

0

私は要件requirement is, for some specific type of field, I want to show selection, for Value field instead of simple text box.

for (DataSourceField field : dataSource.getFields()) { 

    String type = field.getAttribute("serverType"); 

    if (type!=null && type.equals("SPECIFIC_TYPE")) { 

    TreeMap<String, String> map = new TreeMap<String, String>(); 
    map.put("1", "value 1"); 
    map.put("2", "value 2"); 
    field.setValueMap(map); 
    } 
} 
のための解決策を見つけました
関連する問題