Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/BooleanProperty.java @ 2468:6a65694bdcc2
Issue 506.
Gauge time range panel now accepts dates. The dates are stored as long values.
flys-client/trunk@4176 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 20 Mar 2012 14:53:42 +0000 |
parents | c21d14e48040 |
children |
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 BooleanProperty extends PropertySetting { /** * Create a new BooleanProperty for settings. */ public BooleanProperty() { this.attributes = new HashMap<String, String>(); } /** * Create a new BooleanProperty. * @param name The attribute name. * @param value The current value. */ public BooleanProperty( String name, Boolean value) { this.name = name; this.value = value.toString(); this.attributes = new HashMap<String, String>(); } @Override public Boolean getValue() { return Boolean.valueOf(this.value); } public void setValue(Boolean value) { this.value = value.toString(); } public Object clone() { BooleanProperty clone = new BooleanProperty(this.getName(), this.getValue()); for(String s: this.getAttributeList()) { clone.setAttribute(s, this.getAttribute(s)); } return clone; } }