Пример #1
0
 public PSMittel getTypForId(String id) {
   for (PSMittel t : this.data) {
     if (t.getId().equals(Long.valueOf(id))) {
       return t;
     }
   }
   return null;
 }
Пример #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);
  }