Mercurial > dive4elements > river
changeset 1576:8e5c5c70c586
Implemented WQSimpleArrayPanel.createOld().
flys-client/trunk@3842 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 31 Jan 2012 15:22:48 +0000 |
parents | 0f2b94408bd1 |
children | 322f2626fb5d |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java |
diffstat | 2 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Tue Jan 31 15:20:17 2012 +0000 +++ b/flys-client/ChangeLog Tue Jan 31 15:22:48 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-31 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java: + Finished implementation of createOld(); + 2012-01-31 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/shared/model/DoubleArrayData.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java Tue Jan 31 15:20:17 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java Tue Jan 31 15:22:48 2012 +0000 @@ -70,8 +70,11 @@ @Override public Canvas createOld(DataList dataList) { - Data data = dataList.get(0); - DataItem[] items = data.getItems(); + IntegerOptionsData modeData = findOptionsData(dataList); + IntegerArrayData valuesData = findValuesData(dataList); + + DataItem[] modeItems = modeData.getItems(); + DataItem[] valuesItems = valuesData.getItems(); HLayout layout = new HLayout(); VLayout valueContainer = new VLayout(); @@ -80,12 +83,11 @@ label.setWidth(200); label.setHeight(20); - // TODO Display mode and selected values - Label mode = new Label("TODO: IMPLEMENT MODE"); + Label mode = new Label(modeItems[0].getLabel()); mode.setHeight(20); mode.setWidth(150); - Label values = new Label("TODO: IMPLEMENT VALUES"); + Label values = new Label(valuesItems[0].getLabel()); values.setHeight(20); values.setWidth(150);