com.jgoodies.binding.list
Class ArrayListModel<E>

java.lang.Object
  extended by 
      extended by com.jgoodies.binding.list.ArrayListModel<E>
Type Parameters:
E - the type of the list elements
All Implemented Interfaces:
ObservableList<E>

Deprecated. Replaced by com.jgoodies.common.collect.ArrayListModel. This class will be removed from the next library version.

@Deprecated
public final class ArrayListModel<E>
extends
implements ObservableList<E>

Adds 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.

Version:
$Revision: 1.12 $
Author:
Karsten Lentzsch

Constructor Summary
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.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListModel

public ArrayListModel()
Deprecated. 
Constructs an empty list with an initial capacity of ten.


ArrayListModel

public ArrayListModel(int initialCapacity)
Deprecated. 
Constructs an empty list with the specified initial capacity.

Parameters:
initialCapacity - the initial capacity of the list.
Throws:
java.lang.IllegalArgumentException - if the specified initial capacity is negative

ArrayListModel

public 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. The ArrayListModel instance has an initial capacity of 110% the size of the specified collection.

Parameters:
c - the collection whose elements are to be placed into this list.
Throws:
java.lang.NullPointerException - if the specified collection is null


Copyright © 2002-2010 JGoodies Karsten Lentzsch. All Rights Reserved.