Mercurial > dive4elements > river
changeset 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 | f8c240f28c2a |
children | fa3d9f79dff5 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java |
diffstat | 5 files changed, 40 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Tue Mar 29 10:11:57 2011 +0000 +++ b/flys-client/ChangeLog Tue Mar 29 11:42:15 2011 +0000 @@ -1,3 +1,13 @@ +2011-03-29 Raimund Renkert <rrenkert@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java, + src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java, + src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java: Set + label width to have a tabled style for WINFO selections. + + * src/main/java/de/intevation/flys/client/client/ui/CollectionView.java: + Resized window to fit the content size. + 2011-03-29 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/ParameterList.java: @@ -22,6 +32,16 @@ 2011-03-29 Raimund Renkert <rrenkert@intevation.de> + * src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java, + src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java, + src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java: Set + label width to have a tabled style for WINFO selections. + + * src/main/java/de/intevation/flys/client/client/ui/CollectionView.java: + Resized window to fit the content size. + +2011-03-29 Raimund Renkert <rrenkert@intevation.de> + * src/main/java/de/intevation/flys/client/client/ui/MainMenu.java: Fixed toggle method.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Mar 29 10:11:57 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Mar 29 11:42:15 2011 +0000 @@ -109,7 +109,7 @@ * This method handles the initial layout stuff. */ protected void init() { - setWidth(700); + setWidth(750); setHeight(600); layout.setWidth100();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Tue Mar 29 10:11:57 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Tue Mar 29 11:42:15 2011 +0000 @@ -16,6 +16,7 @@ import com.smartgwt.client.widgets.form.fields.RadioGroupItem; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; +import com.smartgwt.client.types.Alignment; import de.intevation.flys.client.shared.model.Data; import de.intevation.flys.client.shared.model.DataItem; @@ -131,9 +132,10 @@ DataItem[] step = dStep.getItems(); HLayout layout = new HLayout(); + layout.setWidth("400px"); + Label label = new Label(dataList.getLabel()); - - label.setWidth("50%"); + label.setWidth("200px"); StringBuilder sb = new StringBuilder(); sb.append(from[0].getLabel()); @@ -145,8 +147,11 @@ Canvas back = getBackButton(dataList.getState()); + Label selected = new Label(sb.toString()); + selected.setWidth("130px"); + layout.addMember(label); - layout.addMember(new Label(sb.toString())); + layout.addMember(selected); layout.addMember(back); return layout;
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java Tue Mar 29 10:11:57 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SelectProvider.java Tue Mar 29 11:42:15 2011 +0000 @@ -13,6 +13,7 @@ import com.smartgwt.client.widgets.form.fields.ComboBoxItem; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; +import com.smartgwt.client.types.Alignment; import de.intevation.flys.client.shared.model.Data; import de.intevation.flys.client.shared.model.DataItem; @@ -64,9 +65,10 @@ public Canvas createOld(DataList dataList) { HLayout layout = new HLayout(); VLayout vLayout = new VLayout(); + layout.setWidth("400px"); Label label = new Label(dataList.getLabel()); - label.setWidth("50%"); + label.setWidth("200px"); int size = dataList.size(); for (int i = 0; i < size; i++) { @@ -80,6 +82,7 @@ hLayout.addMember(new Label(item.getLabel())); vLayout.addMember(hLayout); + vLayout.setWidth("130px"); } }
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Tue Mar 29 10:11:57 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Tue Mar 29 11:42:15 2011 +0000 @@ -16,6 +16,7 @@ import com.smartgwt.client.widgets.form.fields.events.ChangeEvent; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; +import com.smartgwt.client.types.Alignment; import de.intevation.flys.client.shared.model.Data; import de.intevation.flys.client.shared.model.DataItem; @@ -152,14 +153,18 @@ DataItem[] step = dStep.getItems(); HLayout layout = new HLayout(); + layout.setWidth("400px"); + Label label = new Label(dataList.getLabel()); - - label.setWidth("50%"); + label.setWidth("200px"); String text = mode[0].getStringValue().equals(FIELD_WQ_W) ? createWString(from[0], to[0], step[0]) : createQString(from[0], to[0], step[0]); + Label selected = new Label(text); + selected.setWidth("130px"); + Canvas back = getBackButton(dataList.getState()); layout.addMember(label);