Mercurial > dive4elements > river
changeset 1556:3324ef9d8341
First step to implement WQSimpleArrayPanel.createOld().
flys-client/trunk@3795 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 27 Jan 2012 13:02:46 +0000 |
parents | c057ef91b268 |
children | 964e90c5b4c1 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java |
diffstat | 2 files changed, 34 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Fri Jan 27 13:02:38 2012 +0000 +++ b/flys-client/ChangeLog Fri Jan 27 13:02:46 2012 +0000 @@ -11,6 +11,11 @@ 2012-01-27 Ingo Weinzierl <ingo@intevation.de> + * src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java: + Implemented the first part of createOld(). TODO: display selected data. + +2012-01-27 Ingo Weinzierl <ingo@intevation.de> + * src/main/java/de/intevation/flys/client/shared/model/RangeData.java: New interface for ranges that declares two methods getUpper() and getLower().
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java Fri Jan 27 13:02:38 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java Fri Jan 27 13:02:46 2012 +0000 @@ -14,6 +14,7 @@ import com.smartgwt.client.widgets.form.fields.events.BlurHandler; import com.smartgwt.client.widgets.form.fields.events.ChangedEvent; import com.smartgwt.client.widgets.form.fields.events.ChangedHandler; +import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; import de.intevation.flys.client.shared.model.Data; @@ -68,9 +69,34 @@ @Override - public Canvas createOld(DataList data) { - // TODO IMPLEMENT ME - return new Canvas(); + public Canvas createOld(DataList dataList) { + Data data = dataList.get(0); + DataItem[] items = data.getItems(); + + HLayout layout = new HLayout(); + VLayout valueContainer = new VLayout(); + + Label label = new Label(dataList.getLabel()); + label.setWidth(200); + label.setHeight(20); + + // TODO Display mode and selected values + Label mode = new Label("TODO: IMPLEMENT MODE"); + mode.setHeight(20); + mode.setWidth(150); + + Label values = new Label("TODO: IMPLEMENT VALUES"); + values.setHeight(20); + values.setWidth(150); + + valueContainer.addMember(mode); + valueContainer.addMember(values); + + layout.addMember(label); + layout.addMember(valueContainer); + layout.addMember(getBackButton(dataList.getState())); + + return layout; }