| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
jadex.util.collection.BeanChangesArrayList
public class BeanChangesArrayList
An array list with property change support. Throws events when the list changes.
| Constructor Summary | |
|---|---|
| BeanChangesArrayList()Create a new array list. | |
| Method Summary | |
|---|---|
|  void | add(int index,
    Object o)Inserts the specified element at the specified position in this list. | 
|  boolean | add(Object o)Appends the specified element to the end of this list. | 
|  boolean | addAll(Collection collection)Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. | 
|  boolean | addAll(int index,
       Collection collection)Inserts all of the elements in the specified Collection into this list, starting at the specified position. | 
|  void | addPropertyChangeListener(PropertyChangeListener listener)Add a PropertyChangeListener to the listener list. | 
|  void | modified()Indicate that the list has changed. | 
|  Object | remove(int index)Removes the element at the specified position in this list. | 
|  boolean | remove(Object o)Removes a single instance of the specified element from this list, if it is present (optional operation). | 
|  void | removePropertyChangeListener(PropertyChangeListener listener)Remove a PropertyChangeListener from the listener list. | 
|  void | removeRange(int fromIndex,
            int toIndex)Removes from this List all of the elements whose index is between fromIndex, inclusive and toIndex, exclusive. | 
|  Object | set(int index,
    Object o)Replaces the element at the specified position in this list with the specified element. | 
| Methods inherited from class java.util.ArrayList | 
|---|
| clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, 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, removeAll, retainAll, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.List | 
|---|
| containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList | 
| Constructor Detail | 
|---|
public BeanChangesArrayList()
| Method Detail | 
|---|
public Object set(int index,
                  Object o)
set in interface Listset in class ArrayListindex - index of element to replace.o - element to be stored at the specified position.
IndexOutOfBoundsException - if index out of range
 (index < 0 || index >= size()).public boolean add(Object o)
add in interface Collectionadd in interface Listadd in class ArrayListo - element to be appended to this list.
public void add(int index,
                Object o)
add in interface Listadd in class ArrayListindex - index at which the specified element is to be inserted.o - element to be inserted.
IndexOutOfBoundsException - if index is out of range
 (index < 0 || index > size()).public Object remove(int index)
remove in interface Listremove in class ArrayListindex - the index of the element to removed.
IndexOutOfBoundsException - if index out of range (index
 < 0 || index >= size()).public boolean remove(Object o)
remove in interface Collectionremove in interface Listremove in class ArrayListo - element to be removed from this list, if present.
public boolean addAll(Collection collection)
addAll in interface CollectionaddAll in interface ListaddAll in class ArrayListcollection - the elements to be inserted into this list.
NullPointerException - if the specified collection is null.
public boolean addAll(int index,
                      Collection collection)
addAll in interface ListaddAll in class ArrayListindex - index at which to insert first element
 from the specified collection.collection - elements to be inserted into this list.
IndexOutOfBoundsException - if index out of range (index
 < 0 || index > size()).
NullPointerException - if the specified Collection is null.
public void removeRange(int fromIndex,
                        int toIndex)
removeRange in class ArrayListfromIndex - index of first element to be removed.toIndex - index after last element to be removed.public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to be removed.public void modified()
| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.