Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerOptionsData.java @ 1575:0f2b94408bd1
Added further methods to DataFactory to create concrete Data instances.
flys-client/trunk@3841 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 31 Jan 2012 15:20:17 +0000 |
parents | 252c22237fe7 |
children | d0a9acddbea2 |
comparison
equal
deleted
inserted
replaced
1574:465f72f68cee | 1575:0f2b94408bd1 |
---|---|
1 package de.intevation.flys.client.shared.model; | 1 package de.intevation.flys.client.shared.model; |
2 | 2 |
3 | 3 |
4 public class IntegerOptionsData implements Data { | 4 public class IntegerOptionsData implements Data { |
5 | |
6 public static final String TYPE = "intoptions"; | |
5 | 7 |
6 protected String label; | 8 protected String label; |
7 protected String description; | 9 protected String description; |
8 | 10 |
9 public DataItem[] opts; | 11 public DataItem[] opts; |
44 * Returns the type of the item. | 46 * Returns the type of the item. |
45 * | 47 * |
46 * @return the type. | 48 * @return the type. |
47 */ | 49 */ |
48 public String getType() { | 50 public String getType() { |
49 return "intoptions"; | 51 return TYPE; |
50 } | 52 } |
51 | 53 |
52 | 54 |
53 /** | 55 /** |
54 * Returns the data items which represent the allowed options for this Data. | 56 * Returns the data items which represent the allowed options for this Data. |