# HG changeset patch # User Ingo Weinzierl # Date 1327669366 0 # Node ID 3324ef9d8341500d5815176aa731f579d3b8bba2 # Parent c057ef91b2684afa78cc7d1a2f534a0ec95d044a First step to implement WQSimpleArrayPanel.createOld(). flys-client/trunk@3795 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c057ef91b268 -r 3324ef9d8341 flys-client/ChangeLog --- 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 + * 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 + * src/main/java/de/intevation/flys/client/shared/model/RangeData.java: New interface for ranges that declares two methods getUpper() and getLower(). diff -r c057ef91b268 -r 3324ef9d8341 flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java --- 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; }