view flys-client/src/main/java/de/intevation/flys/client/shared/model/BooleanProperty.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 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,
        String value)
    {
        this.name = name;
        this.value = value;
        this.attributes = new HashMap<String, String>();
    }


    public Object clone() {
        BooleanProperty clone = new BooleanProperty(this.getName(),
                                                    this.getValue());
        for(String s: this.getAttributeList()) {
            clone.setAttribute(s, this.getAttribute(s));
        }
        return clone;
    }

}

http://dive4elements.wald.intevation.org