teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.shared.model; raimund@2535: raimund@2535: raimund@2535: /** raimund@2535: * The integer implementation of a {@link DataItem}. raimund@2535: * raimund@2535: * @author Raimund Renkert raimund@2535: */ raimund@2535: public class IntDataItem implements DataItem { raimund@2535: raimund@2535: /** The label. */ raimund@2535: protected String label; raimund@2535: raimund@2535: /** The description. */ raimund@2535: protected String description; raimund@2535: raimund@2535: /** The value. */ raimund@2535: protected int value; raimund@2535: raimund@2535: raimund@2535: public IntDataItem() { raimund@2535: } raimund@2535: raimund@2535: raimund@2535: /** raimund@2535: * The default constructor to create new instances. raimund@2535: * raimund@2535: * @param label The label. raimund@2535: * @param description The description. raimund@2535: * @param value The value. raimund@2535: */ raimund@2535: public IntDataItem(String label, String description, int value) { raimund@2535: this.label = label; raimund@2535: this.description = description; raimund@2535: this.value = value; raimund@2535: } raimund@2535: raimund@2535: raimund@2535: public String getLabel() { raimund@2535: return label; raimund@2535: } raimund@2535: raimund@2535: raimund@2535: public String getDescription() { raimund@2535: return description; raimund@2535: } raimund@2535: raimund@2535: raimund@2535: public String getStringValue() { raimund@2535: return String.valueOf(value); raimund@2535: } raimund@2535: raimund@2535: public int getValue() { raimund@2535: return value; raimund@2535: } raimund@2535: } raimund@2535: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :