Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.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 | d0bcf5ba7adf |
children | 62332fa199bf |
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 | 2 |
3 import java.util.List; | 3 import java.util.List; |
4 import java.util.ArrayList; | |
4 | 5 |
5 /** | 6 /** |
6 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 7 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
7 */ | 8 */ |
8 public class PropertyGroup implements Property { | 9 public class PropertyGroup implements Property, Cloneable { |
9 | 10 |
10 /** The group name */ | 11 /** The group name */ |
11 protected String name; | 12 protected String name; |
12 | 13 |
13 protected List<Property> properties; | 14 protected List<Property> properties; |
47 return properties.get(i); | 48 return properties.get(i); |
48 } | 49 } |
49 } | 50 } |
50 return null; | 51 return null; |
51 } | 52 } |
53 | |
54 | |
55 public Object clone() { | |
56 PropertyGroup clone = new PropertyGroup(this.getName()); | |
57 List<Property> cloneList = new ArrayList<Property>(); | |
58 for(Property p: properties) { | |
59 cloneList.add((Property)p.clone()); | |
60 } | |
61 clone.setProperties(cloneList); | |
62 return clone; | |
63 } | |
52 } | 64 } |