comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultData.java @ 22:a85bac235069

Implemented code to parse the UIProvider that should be used for a current state. flys-client/trunk@1336 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 22 Feb 2011 17:29:51 +0000
parents fa0aad20af53
children d573ae975330
comparison
equal deleted inserted replaced
21:e98a25b5c95a 22:a85bac235069
1 package de.intevation.flys.client.shared.model; 1 package de.intevation.flys.client.shared.model;
2
3 import de.intevation.flys.client.client.ui.UIProvider;
2 4
3 5
4 /** 6 /**
5 * The default implementation of a {@link Data} item. This class just implements 7 * The default implementation of a {@link Data} item. This class just implements
6 * constructors to create instances and the necessary methods of the interface. 8 * constructors to create instances and the necessary methods of the interface.
19 protected String type; 21 protected String type;
20 22
21 /** The DataItems.*/ 23 /** The DataItems.*/
22 protected DataItem[] items; 24 protected DataItem[] items;
23 25
26 /** The UIProvider that should be used to create UIs. */
27 protected String uiProvider;
28
24 29
25 public DefaultData() { 30 public DefaultData() {
26 } 31 }
27 32
28 33
33 * @param description The description. 38 * @param description The description.
34 * @param type The type. 39 * @param type The type.
35 * @param items The DataItems. 40 * @param items The DataItems.
36 */ 41 */
37 public DefaultData( 42 public DefaultData(
38 String label, String description, String type, DataItem[] items) 43 String label,
44 String description,
45 String type,
46 DataItem[] items,
47 String uiProvider)
39 { 48 {
40 this.label = label; 49 this.label = label;
41 this.description = description; 50 this.description = description;
42 this.type = type; 51 this.type = type;
43 this.items = items; 52 this.items = items;
53 this.uiProvider = uiProvider;
44 } 54 }
45 55
46 56
47 public String getLabel() { 57 public String getLabel() {
48 return label; 58 return label;
60 70
61 71
62 public DataItem[] getItems() { 72 public DataItem[] getItems() {
63 return items; 73 return items;
64 } 74 }
75
76
77 public String getUIProvider() {
78 return uiProvider;
79 }
65 } 80 }
66 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 81 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org