comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerOptionsData.java @ 1527:252c22237fe7

Added new Data classes for integer array and integer options. flys-client/trunk@3725 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 19 Jan 2012 16:59:43 +0000
parents
children 0f2b94408bd1
comparison
equal deleted inserted replaced
1526:4a5e65551923 1527:252c22237fe7
1 package de.intevation.flys.client.shared.model;
2
3
4 public class IntegerOptionsData implements Data {
5
6 protected String label;
7 protected String description;
8
9 public DataItem[] opts;
10
11
12 public IntegerOptionsData() {
13 }
14
15
16 public IntegerOptionsData(String label, String desc, DataItem[] opts) {
17 this.label = label;
18 this.description = desc;
19 this.opts = opts;
20 }
21
22
23 /**
24 * Returns the label of the item.
25 *
26 * @return the label.
27 */
28 public String getLabel() {
29 return label;
30 }
31
32
33 /**
34 * Returns the description of the item.
35 *
36 * @return the description.
37 */
38 public String getDescription() {
39 return description;
40 }
41
42
43 /**
44 * Returns the type of the item.
45 *
46 * @return the type.
47 */
48 public String getType() {
49 return "intoptions";
50 }
51
52
53 /**
54 * Returns the data items which represent the allowed options for this Data.
55 *
56 * @return the allowed options as DataItem array.
57 */
58 public DataItem[] getItems() {
59 return opts;
60 }
61
62
63 /**
64 * @return always null.
65 */
66 public DataItem getDefault() {
67 return null;
68 }
69 }

http://dive4elements.wald.intevation.org