1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
FormPanel fp = new FormPanel();
fp.setHeaderVisible(false);
fp.setBodyBorder(true);
fp.setFieldWidth(400);
fp.setLabelWidth(220);
MarginData md = new MarginData(5, 5, 5, 10);
int id = availableId.get(0);
Iterator<AnesthPerOpEventObject> it = events.iterator();
int num = 1;
while(num <= nbEventCombos) {
final AnesthPerOpComboBox combo = new AnesthPerOpComboBox(longestStrings.get(num), itemId, id, ALDRETE + "_" + num, false);
AnesthPerOpEventObject obj = it.next();
combo.add(obj.getValues());
combo.remove("");
combo.setSimpleValue(obj.getValues().get(2));
combo.setFieldLabel(obj.getName() + " ");
fp.add(combo, md);
num++;
} |
Partager