Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DataItem.java @ 12:fa0aad20af53
Adjusted interfaces used for the ArtifactDescription and added default implementations.
flys-client/trunk@1321 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 17 Feb 2011 08:31:33 +0000 |
parents | 9cb3ee7ed8ba |
children |
comparison
equal
deleted
inserted
replaced
11:6aeb4072eeb4 | 12:fa0aad20af53 |
---|---|
1 package de.intevation.flys.client.shared.model; | 1 package de.intevation.flys.client.shared.model; |
2 | |
3 import java.io.Serializable; | |
2 | 4 |
3 | 5 |
4 /** | 6 /** |
5 * A DataItem represents a concrete item that might be selected, chosen or | 7 * A DataItem represents a concrete item that might be selected, chosen or |
6 * inserted by the user. | 8 * inserted by the user. |
7 * | 9 * |
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
9 */ | 11 */ |
10 public interface DataItem { | 12 public interface DataItem extends Serializable { |
11 | 13 |
12 /** | 14 /** |
13 * Returns the label of the item. | 15 * Returns the label of the item. |
14 * | 16 * |
15 * @return the label. | 17 * @return the label. |
28 /** | 30 /** |
29 * Returns the value of the item. | 31 * Returns the value of the item. |
30 * | 32 * |
31 * @return the value. | 33 * @return the value. |
32 */ | 34 */ |
33 public Object getValue(); | 35 public String getStringValue(); |
34 } | 36 } |
35 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 37 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |