Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/MultiAttributeData.java @ 8071:6e6506ec0ae0
Parse meta data for multi attribute data.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 05 Aug 2014 18:28:04 +0200 |
parents | 5c80f419aea4 |
children | a805211690f7 |
comparison
equal
deleted
inserted
replaced
8070:d77f53c1e5a1 | 8071:6e6506ec0ae0 |
---|---|
1 package org.dive4elements.river.client.shared.model; | 1 package org.dive4elements.river.client.shared.model; |
2 | |
3 import java.util.Map; | |
2 | 4 |
3 | 5 |
4 public class MultiAttributeData | 6 public class MultiAttributeData |
5 implements Data | 7 implements Data |
6 { | 8 { |
8 public static final String TYPE = "multiattribute"; | 10 public static final String TYPE = "multiattribute"; |
9 | 11 |
10 protected String label; | 12 protected String label; |
11 protected String description; | 13 protected String description; |
12 | 14 |
15 protected Map<String, Map<String, String>> meta; | |
16 | |
13 public DataItem[] opts; | 17 public DataItem[] opts; |
14 | 18 |
15 | 19 |
16 public MultiAttributeData() { | 20 public MultiAttributeData() { |
17 } | 21 } |
18 | 22 |
19 | 23 |
20 public MultiAttributeData(String label, String desc, DataItem[] opts) { | 24 public MultiAttributeData( |
25 String label, | |
26 String desc, | |
27 DataItem[] opts, | |
28 Map<String, Map<String, String>> meta | |
29 ) { | |
21 this.label = label; | 30 this.label = label; |
22 this.description = desc; | 31 this.description = desc; |
23 this.opts = opts; | 32 this.opts = opts; |
24 } | 33 } |
25 | 34 |
35 public Map<String, Map<String, String>> getMeta() { | |
36 return meta; | |
37 } | |
26 | 38 |
27 /** | 39 /** |
28 * Returns the label of the item. | 40 * Returns the label of the item. |
29 * | 41 * |
30 * @return the label. | 42 * @return the label. |