Guest User

Untitled

a guest
Nov 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. protected HashMap<FieldModel.Id<?>, Field<?>> fields = new HashMap<FieldModel.Id<?>, Field<?>>();
  2.  
  3.  
  4.  
  5.         for (Entry<FieldModel.Id<?>, Field<?>> entry : fields.entrySet()) {
  6.             String key = entry.getKey().toString();
  7.             FieldModel<?> fieldModel = getFormModel().get(entry.getKey());
  8.             if (fieldModel != null) {
  9.                 fieldModel.bind((Field<?>) entry.getValue());
  10.             }
  11.             widgets.put(key, (Widget) entry.getValue());
  12.             labels.put(key, "Hilfe");
  13.             try {
  14.                 infotexts.put(key, getConstants().getString(key + "InfoText"));
  15.             } catch (Exception e) {
  16.                 // do nothing...
  17.             }
  18.         }
Add Comment
Please, Sign In to add comment