Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java @ 6728:d56a19830e04
issue1393/SedLoadOffEpochPanel: Request the correct (off-epoch) data
to show in inputhelper.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 31 Jul 2013 11:35:54 +0200 |
parents | e1ec4d4f53c6 |
children | a8910581ff03 |
comparison
equal
deleted
inserted
replaced
6727:af70e3ab2e83 | 6728:d56a19830e04 |
---|---|
57 root.addMember(title); | 57 root.addMember(title); |
58 | 58 |
59 return root; | 59 return root; |
60 } | 60 } |
61 | 61 |
62 /** Create layout for data entered previously. */ | |
62 @Override | 63 @Override |
63 public Canvas createOld(DataList dataList) { | 64 public Canvas createOld(DataList dataList) { |
64 HLayout layout = new HLayout(); | 65 HLayout layout = new HLayout(); |
65 layout.setWidth("400px"); | 66 layout.setWidth("400px"); |
66 VLayout vLayout = new VLayout(); | 67 VLayout vLayout = new VLayout(); |
163 DataList[] data = adescr.getOldData(); | 164 DataList[] data = adescr.getOldData(); |
164 | 165 |
165 double[] km = artifact.getArtifactDescription().getKMRange(); | 166 double[] km = artifact.getArtifactDescription().getKMRange(); |
166 String river = artifact.getArtifactDescription().getRiver(); | 167 String river = artifact.getArtifactDescription().getRiver(); |
167 | 168 |
168 sedLoadInfoService.getSedimentLoadInfo(locale, river, "epoch", km[0], km[1], | 169 sedLoadInfoService.getSedimentLoadInfo(locale, river, "off_epoch", km[0], km[1], |
169 new AsyncCallback<SedimentLoadInfoObject[]>() { | 170 new AsyncCallback<SedimentLoadInfoObject[]>() { |
170 public void onFailure(Throwable caught) { | 171 public void onFailure(Throwable caught) { |
171 GWT.log("Could not receive sediment load informations."); | 172 GWT.log("Could not receive sediment load informations."); |
172 SC.warn(caught.getMessage()); | 173 SC.warn(caught.getMessage()); |
173 } | 174 } |