Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java @ 1591:8ab010967f78
Refactored.
flys-client/trunk@3888 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 03 Feb 2012 08:30:58 +0000 |
parents | dbdf954dbe94 |
children | 69a498896c9c |
comparison
equal
deleted
inserted
replaced
1590:4b773cfd11b5 | 1591:8ab010967f78 |
---|---|
25 import de.intevation.flys.client.shared.model.Collection; | 25 import de.intevation.flys.client.shared.model.Collection; |
26 import de.intevation.flys.client.shared.model.Data; | 26 import de.intevation.flys.client.shared.model.Data; |
27 import de.intevation.flys.client.shared.model.DataItem; | 27 import de.intevation.flys.client.shared.model.DataItem; |
28 import de.intevation.flys.client.shared.model.DataList; | 28 import de.intevation.flys.client.shared.model.DataList; |
29 | 29 |
30 import de.intevation.flys.client.shared.model.DefaultData; | |
31 import de.intevation.flys.client.shared.model.DefaultDataItem; | |
32 | |
33 | |
30 /** | 34 /** |
31 * An abstract UIProvider that provides some basic methods. | 35 * An abstract UIProvider that provides some basic methods. |
32 * | 36 * |
33 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 37 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
34 */ | 38 */ |
277 public List<String> validate() { | 281 public List<String> validate() { |
278 return new ArrayList<String>(); | 282 return new ArrayList<String>(); |
279 } | 283 } |
280 | 284 |
281 | 285 |
286 /** Create simple DefaultData with single DataItem inside. */ | |
287 public static DefaultData createDataArray(String name, String value) { | |
288 DataItem item = new DefaultDataItem( | |
289 name, | |
290 name, | |
291 value); | |
292 | |
293 return new DefaultData(name, | |
294 null, | |
295 null, | |
296 new DataItem[] {item}); | |
297 } | |
298 | |
299 | |
282 /** | 300 /** |
283 * This method needs to be implemented by concrete subclasses. It should | 301 * This method needs to be implemented by concrete subclasses. It should |
284 * create a new Canvas object with a representation of <i>data</i>. | 302 * create a new Canvas object with a representation of <i>data</i>. |
285 * | 303 * |
286 * @param data The data that should be displayed. | 304 * @param data The data that should be displayed. |