Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java @ 91:0d8203594bb4
Resized CollectionView and set the content size to have a tabled style.
flys-client/trunk@1604 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 29 Mar 2011 11:42:15 +0000 |
parents | 4784ca718476 |
children | f7967d12ce6e |
comparison
equal
deleted
inserted
replaced
90:f8c240f28c2a | 91:0d8203594bb4 |
---|---|
11 import com.smartgwt.client.widgets.Label; | 11 import com.smartgwt.client.widgets.Label; |
12 import com.smartgwt.client.widgets.form.DynamicForm; | 12 import com.smartgwt.client.widgets.form.DynamicForm; |
13 import com.smartgwt.client.widgets.form.fields.ComboBoxItem; | 13 import com.smartgwt.client.widgets.form.fields.ComboBoxItem; |
14 import com.smartgwt.client.widgets.layout.HLayout; | 14 import com.smartgwt.client.widgets.layout.HLayout; |
15 import com.smartgwt.client.widgets.layout.VLayout; | 15 import com.smartgwt.client.widgets.layout.VLayout; |
16 import com.smartgwt.client.types.Alignment; | |
16 | 17 |
17 import de.intevation.flys.client.shared.model.Data; | 18 import de.intevation.flys.client.shared.model.Data; |
18 import de.intevation.flys.client.shared.model.DataItem; | 19 import de.intevation.flys.client.shared.model.DataItem; |
19 import de.intevation.flys.client.shared.model.DataList; | 20 import de.intevation.flys.client.shared.model.DataList; |
20 import de.intevation.flys.client.shared.model.DefaultData; | 21 import de.intevation.flys.client.shared.model.DefaultData; |
62 | 63 |
63 | 64 |
64 public Canvas createOld(DataList dataList) { | 65 public Canvas createOld(DataList dataList) { |
65 HLayout layout = new HLayout(); | 66 HLayout layout = new HLayout(); |
66 VLayout vLayout = new VLayout(); | 67 VLayout vLayout = new VLayout(); |
68 layout.setWidth("400px"); | |
67 | 69 |
68 Label label = new Label(dataList.getLabel()); | 70 Label label = new Label(dataList.getLabel()); |
69 label.setWidth("50%"); | 71 label.setWidth("200px"); |
70 | 72 |
71 int size = dataList.size(); | 73 int size = dataList.size(); |
72 for (int i = 0; i < size; i++) { | 74 for (int i = 0; i < size; i++) { |
73 Data data = dataList.get(i); | 75 Data data = dataList.get(i); |
74 DataItem[] items = data.getItems(); | 76 DataItem[] items = data.getItems(); |
78 | 80 |
79 hLayout.addMember(label); | 81 hLayout.addMember(label); |
80 hLayout.addMember(new Label(item.getLabel())); | 82 hLayout.addMember(new Label(item.getLabel())); |
81 | 83 |
82 vLayout.addMember(hLayout); | 84 vLayout.addMember(hLayout); |
85 vLayout.setWidth("130px"); | |
83 } | 86 } |
84 } | 87 } |
85 | 88 |
86 Canvas back = getBackButton(dataList.getState()); | 89 Canvas back = getBackButton(dataList.getState()); |
87 | 90 |