comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertySetting.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 237e7450ae2e
children c21d14e48040
comparison
equal deleted inserted replaced
1502:d1223d93dd68 1503:3304608baf35
4 import java.util.ArrayList; 4 import java.util.ArrayList;
5 5
6 /** 6 /**
7 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 7 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
8 */ 8 */
9 public class PropertySetting implements Property { 9 public class PropertySetting implements Property, Cloneable {
10 10
11 /**The settings name.*/ 11 /**The settings name.*/
12 protected String name; 12 protected String name;
13 13
14 /** The default value.*/ 14 /** The default value.*/
64 } 64 }
65 65
66 public ArrayList<String> getAttributeList() { 66 public ArrayList<String> getAttributeList() {
67 return new ArrayList<String>(attributes.keySet()); 67 return new ArrayList<String>(attributes.keySet());
68 } 68 }
69
70
71 public Object clone() {
72 PropertySetting clone = new PropertySetting(this.getName(),
73 this.getValue());
74 for(String s: this.getAttributeList()) {
75 clone.setAttribute(s, this.getAttribute(s));
76 }
77 return clone;
78 }
69 } 79 }
70 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 80 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org