コード例 #1
0
 @Override
 public String put(String key, String convertedValue) {
   String fieldName = (String) key;
   FormField formField = form.getField(fieldName);
   formField.setConvertedValue(form, convertedValue);
   return super.put(fieldName, convertedValue);
 }
コード例 #2
0
 @Override
 public String get(Object key) {
   String fieldName = (String) key;
   String displayFileName = super.get(fieldName);
   if (displayFileName == null && !containsKey(fieldName)) {
     FormField formField = form.getField(fieldName);
     if (formField.isUploadField()) {
       displayFileName = formField.getUploadHandler().onDisplay(form.get(fieldName));
       super.put(fieldName, displayFileName);
     } else {
       super.put(fieldName, null);
     }
   }
   return displayFileName;
 }