Mercurial > dive4elements > gnv-client
view gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/NamedArrayList.java @ 171:7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
gnv-artifacts/trunk@208 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 09 Oct 2009 07:54:48 +0000 |
parents | e33c61735a4e |
children |
line wrap: on
line source
/** * */ package de.intevation.gnv.transition.describedata; import java.util.ArrayList; import java.util.Collection; /** * @author Tim Englich <tim.englich@intevation.de> * */ public class NamedArrayList<E> extends ArrayList<E> implements NamedCollection<E> { /** * */ private static final long serialVersionUID = 8172229594749676354L; private String name = null; private boolean multiSelect = false; /** * Constructor */ public NamedArrayList(String name) { this.name = name; } /** * Constructor * * @param initialCapacity */ public NamedArrayList(String name, int initialCapacity) { super(initialCapacity); this.name = name; } /** * Constructor * * @param c */ public NamedArrayList(String name, Collection<E> c) { super(c); this.name = name; } /** * @see de.intevation.gnv.transition.describedata.NamedCollection#getName() */ public String getName() { return this.name; } /** * @see de.intevation.gnv.transition.describedata.NamedCollection#isMultiSelect() */ public boolean isMultiSelect() { return multiSelect; } /** * @see de.intevation.gnv.transition.describedata.NamedCollection#setMultiSelect(boolean) */ public void setMultiSelect(boolean multiSelect) { this.multiSelect = multiSelect; } }