comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/IntDataItem.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-client/src/main/java/org/dive4elements/river/client/shared/model/IntDataItem.java@821a02bbfb4e
children 172338b1407f
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.client.shared.model;
2
3
4 /**
5 * The integer implementation of a {@link DataItem}.
6 *
7 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
8 */
9 public class IntDataItem implements DataItem {
10
11 /** The label. */
12 protected String label;
13
14 /** The description. */
15 protected String description;
16
17 /** The value. */
18 protected int value;
19
20
21 public IntDataItem() {
22 }
23
24
25 /**
26 * The default constructor to create new instances.
27 *
28 * @param label The label.
29 * @param description The description.
30 * @param value The value.
31 */
32 public IntDataItem(String label, String description, int value) {
33 this.label = label;
34 this.description = description;
35 this.value = value;
36 }
37
38
39 public String getLabel() {
40 return label;
41 }
42
43
44 public String getDescription() {
45 return description;
46 }
47
48
49 public String getStringValue() {
50 return String.valueOf(value);
51 }
52
53 public int getValue() {
54 return value;
55 }
56 }
57 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org