Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java @ 6734:3a9c65dd8963
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 31 Jul 2013 13:10:34 +0200 |
parents | a8910581ff03 |
children | f54c4b858213 |
comparison
equal
deleted
inserted
replaced
6732:563f3793d334 | 6734:3a9c65dd8963 |
---|---|
124 | 124 |
125 sedLoadTable.setFields(date); | 125 sedLoadTable.setFields(date); |
126 return sedLoadTable; | 126 return sedLoadTable; |
127 } | 127 } |
128 | 128 |
129 /** Get data via listgrid selection. */ | |
129 @Override | 130 @Override |
130 public Data[] getData() { | 131 public Data[] getData() { |
131 List<Data> data = new ArrayList<Data>(); | 132 List<Data> data = new ArrayList<Data>(); |
132 | 133 |
133 ListGridRecord[] lgr = sedLoadTable.getSelectedRecords(); | 134 ListGridRecord[] lgr = sedLoadTable.getSelectedRecords(); |
149 null, | 150 null, |
150 new DataItem[] { item })); | 151 new DataItem[] { item })); |
151 return data.toArray(new Data[data.size()]); | 152 return data.toArray(new Data[data.size()]); |
152 } | 153 } |
153 | 154 |
155 /** Fetch load info from service and populate table. */ | |
154 protected void fetchSedimentLoadData() { | 156 protected void fetchSedimentLoadData() { |
155 Config config = Config.getInstance(); | 157 Config config = Config.getInstance(); |
156 String locale = config.getLocale (); | 158 String locale = config.getLocale (); |
157 | 159 |
158 ArtifactDescription adescr = artifact.getArtifactDescription(); | 160 ArtifactDescription adescr = artifact.getArtifactDescription(); |
181 } | 183 } |
182 ); | 184 ); |
183 } | 185 } |
184 | 186 |
185 | 187 |
188 /** Add record to input helper listgrid. */ | |
186 protected void addSedimentLoadInfo (SedimentLoadInfoObject[] sedLoad) { | 189 protected void addSedimentLoadInfo (SedimentLoadInfoObject[] sedLoad) { |
187 for(SedimentLoadInfoObject sl: sedLoad) { | 190 for(SedimentLoadInfoObject sl: sedLoad) { |
188 SedimentLoadInfoRecord rec = new SedimentLoadInfoRecord(sl); | 191 SedimentLoadInfoRecord rec = new SedimentLoadInfoRecord(sl); |
189 sedLoadTable.addData(rec); | 192 sedLoadTable.addData(rec); |
190 } | 193 } |