org.displaytag.sample
Class TestList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.displaytag.sample.TestList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class TestList
extends java.util.ArrayList

Just a utility class for testing out the table and column tags. When this class is created, it loads itself with a number of ListObjects that are shown throughout the various example pages that exercise the table object. If created via the default constructor, this loads itself with 60 ListObjects.

Version:
$Revision: 1.10 $ ($Author: fgiust $)
Author:
epesh, Fabrizio Giustina
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TestList()
          Creats a TestList that is filled with 60 ListObjects suitable for testing.
TestList(int size, boolean duplicates)
          Creates a TestList that is filled with [size] ListObjects suitable for testing.
 
Method Summary
 ListObject getItem(int index)
          Returns a ListObject using get(index) from the Array.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

TestList

public TestList()
Creats a TestList that is filled with 60 ListObjects suitable for testing.


TestList

public TestList(int size,
                boolean duplicates)
Creates a TestList that is filled with [size] ListObjects suitable for testing.

Parameters:
size - int size of the list
duplicates - boolean put duplicates in the list
Method Detail

getItem

public ListObject getItem(int index)
Returns a ListObject using get(index) from the Array.

Parameters:
index - int index of the List object into the array
Returns:
ListObject


Copyright © 2002-2005 the Displaytag team. All Rights Reserved.