Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertySetting.java @ 3859:62332fa199bf
Work on "Date" support for ManualPointsEditor.
flys-client/trunk@5621 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 27 Sep 2012 14:09:24 +0000 |
parents | c21d14e48040 |
children |
comparison
equal
deleted
inserted
replaced
3858:87e7571970e6 | 3859:62332fa199bf |
---|---|
1 package de.intevation.flys.client.shared.model; | 1 package de.intevation.flys.client.shared.model; |
2 | 2 |
3 import java.util.ArrayList; | |
3 import java.util.HashMap; | 4 import java.util.HashMap; |
4 import java.util.ArrayList; | 5 import java.util.List; |
5 | 6 |
6 /** | 7 /** |
7 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 8 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
8 */ | 9 */ |
9 public class PropertySetting implements Property, Cloneable { | 10 public class PropertySetting implements Property, Cloneable { |
61 | 62 |
62 public String getAttribute(String key) { | 63 public String getAttribute(String key) { |
63 return attributes.get(key); | 64 return attributes.get(key); |
64 } | 65 } |
65 | 66 |
66 public ArrayList<String> getAttributeList() { | 67 public List<String> getAttributeList() { |
67 return new ArrayList<String>(attributes.keySet()); | 68 return new ArrayList<String>(attributes.keySet()); |
68 } | 69 } |
69 | 70 |
70 | 71 @Override |
71 public Object clone() { | 72 public Object clone() { |
72 PropertySetting clone = new PropertySetting(this.getName(), | 73 PropertySetting clone = new PropertySetting(this.getName(), |
73 this.getValue().toString()); | 74 this.getValue().toString()); |
74 for(String s: this.getAttributeList()) { | 75 for(String s: this.getAttributeList()) { |
75 clone.setAttribute(s, this.getAttribute(s)); | 76 clone.setAttribute(s, this.getAttribute(s)); |