comparison 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
comparison
equal deleted inserted replaced
1502:d1223d93dd68 1503:3304608baf35
1 package de.intevation.flys.client.shared.model; 1 package de.intevation.flys.client.shared.model;
2
3 import java.util.HashMap;
2 4
3 /** 5 /**
4 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 6 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
5 */ 7 */
6 public class BooleanProperty extends PropertySetting { 8 public class BooleanProperty extends PropertySetting {
7 9
10 /**
11 * Create a new BooleanProperty for settings.
12 */
13 public BooleanProperty() {
14 this.attributes = new HashMap<String, String>();
15 }
16
17
18 /**
19 * Create a new BooleanProperty.
20 * @param name The attribute name.
21 * @param value The current value.
22 */
23 public BooleanProperty(
24 String name,
25 String value)
26 {
27 this.name = name;
28 this.value = value;
29 this.attributes = new HashMap<String, String>();
30 }
31
32
33 public Object clone() {
34 BooleanProperty clone = new BooleanProperty(this.getName(),
35 this.getValue());
36 for(String s: this.getAttributeList()) {
37 clone.setAttribute(s, this.getAttribute(s));
38 }
39 return clone;
40 }
41
8 } 42 }

http://dive4elements.wald.intevation.org