Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerProperty.java @ 1503:3304608baf35
Issue 433.
Allways load original chart settings when opening the dialog.
flys-client/trunk@3632 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 09 Jan 2012 17:07:17 +0000 |
parents | 83ed39d1083d |
children | c21d14e48040 |
line wrap: on
line source
package de.intevation.flys.client.shared.model; import java.util.HashMap; /** * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> */ public class IntegerProperty extends PropertySetting { /** * Create a new IntegerProperty for settings. */ public IntegerProperty() { this.attributes = new HashMap<String, String>(); } /** * Create a new IntegerProperty. * @param name The attribute name. * @param value The current value. */ public IntegerProperty( String name, String value) { this.name = name; this.value = value; this.attributes = new HashMap<String, String>(); } public Object clone() { IntegerProperty clone = new IntegerProperty(this.getName(), this.getValue()); for(String s: this.getAttributeList()) { clone.setAttribute(s, this.getAttribute(s)); } return clone; } }