Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/AttrList.java @ 4474:bd78d2b0e309
Map print settings can now be configured via settings window.
Configurable for now are page layout (A0 or A4), caption text and
comment text.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sun, 11 Nov 2012 14:44:12 +0100 |
parents | ffb98b228b3c |
children |
line wrap: on
line source
package de.intevation.flys.client.shared.model; import java.util.List; import java.util.ArrayList; import java.io.Serializable; public class AttrList implements Serializable { protected List<String> keyValues; public AttrList() { this(5); } public AttrList(int size) { keyValues = new ArrayList<String>(size*2); } public int size() { return keyValues != null ? keyValues.size()/2 : null; } public String getKey(int index) { return keyValues.get(index*2); } public String getValue(int index) { return keyValues.get(index*2 + 1); } public void add(String key, String value) { keyValues.add(key); keyValues.add(value); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :