Esempio n. 1
0
 public PSMittel getTypForId(String id) {
   for (PSMittel t : this.data) {
     if (t.getId().equals(Long.valueOf(id))) {
       return t;
     }
   }
   return null;
 }
Esempio n. 2
0
  protected void setData(List<PSMittel> result) {
    this.data = result;

    LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
    for (PSMittel ps : result) {
      valueMap.put(ps.getId().toString(), ps.getName());
    }
    selectItem.setValueMap(valueMap);
  }