comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DataList.java @ 872:a7179e3a774e

Suppress the GeoJSON string to be drawn into the static UI. flys-client/trunk@2693 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 12 Sep 2011 04:55:55 +0000
parents 1d0be51ab93b
children c087137a8584
comparison
equal deleted inserted replaced
871:d08cf5ed1bfc 872:a7179e3a774e
5 import java.util.List; 5 import java.util.List;
6 6
7 /** 7 /**
8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 8 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
9 */ 9 */
10 public class DataList implements Serializable { 10 public class DataList implements Serializable, Cloneable {
11 11
12 /** The list of Data objects managed by this list.*/ 12 /** The list of Data objects managed by this list.*/
13 protected List<Data> data; 13 protected List<Data> data;
14 14
15 /** The name of the state that this list belongs to.*/ 15 /** The name of the state that this list belongs to.*/
159 * @return the name of a UIProvider or null if no one is recommended. 159 * @return the name of a UIProvider or null if no one is recommended.
160 */ 160 */
161 public String getUIProvider() { 161 public String getUIProvider() {
162 return uiprovider; 162 return uiprovider;
163 } 163 }
164
165
166 public Object clone() {
167 DataList clone = new DataList(
168 this.state,
169 this.data.size(),
170 this.uiprovider,
171 this.label);
172 clone.data = (List<Data>) ((ArrayList<Data>)data).clone();
173
174 return clone;
175 }
164 } 176 }
165 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 177 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org