comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java @ 247:4a684d29404f

Implemented the createOld() of WQAdaptedInputPanel. flys-client/trunk@1832 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 05 May 2011 09:33:15 +0000
parents d12078053b59
children ed90309ec608
comparison
equal deleted inserted replaced
246:ccba1a0b743e 247:4a684d29404f
262 } 262 }
263 263
264 264
265 protected String createQString(DataItem single) { 265 protected String createQString(DataItem single) {
266 return single.getLabel(); 266 return single.getLabel();
267 }
268
269
270 /**
271 * This method greps the Data with name <i>name</i> from the list and
272 * returns it.
273 *
274 * @param items A list of Data.
275 * @param name The name of the Data that we are searching for.
276 *
277 * @return the Data with the name <i>name</i>.
278 */
279 protected Data getData(List<Data> data, String name) {
280 for (Data d: data) {
281 if (name.equals(d.getLabel())) {
282 return d;
283 }
284 }
285
286 return null;
287 }
288
289 /**
290 * This method greps the DataItem with name <i>name</i> from the list and
291 * returns it.
292 *
293 * @param items A list of DataItems.
294 * @param name The name of the DataItem that we are searching for.
295 *
296 * @return the DataItem with the name <i>name</i>.
297 */
298 protected DataItem getDataItem(DataItem[] items, String name) {
299 for (DataItem item: items) {
300 if (name.equals(item.getLabel())) {
301 return item;
302 }
303 }
304
305 return null;
306 } 267 }
307 268
308 269
309 /** 270 /**
310 * This method creates the whole widget. There is a panel on the left, that 271 * This method creates the whole widget. There is a panel on the left, that

http://dive4elements.wald.intevation.org