E
- the type of the list elementscom.jgoodies.common.collect.ArrayListModel
.
This class will be removed from the next library version.@Deprecated public final class ArrayListModel<E> extends <any> implements ObservableList<E>
ListModel
capabilities to its superclass
ArrayList
, i. e. allows to observe changes in the content and
structure. Useful for lists that are bound to list views, for example
JList, JComboBox and JTable.Constructor and Description |
---|
ArrayListModel()
Deprecated.
Constructs an empty list with an initial capacity of ten.
|
ArrayListModel(java.util.Collection<? extends E> c)
Deprecated.
Constructs a list containing the elements of the specified collection,
in the order they are returned by the collection's iterator.
|
ArrayListModel(int initialCapacity)
Deprecated.
Constructs an empty list with the specified initial capacity.
|
public ArrayListModel()
public ArrayListModel(int initialCapacity)
initialCapacity
- the initial capacity of the list.java.lang.IllegalArgumentException
- if the specified initial capacity
is negativepublic ArrayListModel(java.util.Collection<? extends E> c)
ArrayListModel
instance has an initial capacity of
110% the size of the specified collection.c
- the collection whose elements are to be placed into this list.java.lang.NullPointerException
- if the specified collection is
null
Copyright © 2002-2010 JGoodies Karsten Lentzsch. All Rights Reserved.