Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/BooleanProperty.java @ 2438:e0f4ea518d59
Query GetFeatureInfo for active layers only.
flys-client/trunk@4106 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 01 Mar 2012 15:07:04 +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; } }