org.dishevelled.observable
Interface ObservableCollection<E>

Type Parameters:
E - collection element type
All Superinterfaces:
Collection<E>, Iterable<E>
All Known Implementing Classes:
AbstractObservableCollection, ObservableCollectionImpl

public interface ObservableCollection<E>
extends Collection<E>

Observable extension to the Collection interface.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
 void addCollectionChangeListener(CollectionChangeListener<E> l)
          Add the specified collection change listener.
 void addVetoableCollectionChangeListener(VetoableCollectionChangeListener<E> l)
          Add the specified vetoable collection change listener.
 int getCollectionChangeListenerCount()
          Return the number of CollectionChangeListeners registered to this observable collection.
 CollectionChangeListener<E>[] getCollectionChangeListeners()
          Return an array of all CollectionChangeListeners, or an empty array if none are registered.
 int getVetoableCollectionChangeListenerCount()
          Return the number of VetoableCollectionChangeListeners registered to this observable collection.
 VetoableCollectionChangeListener<E>[] getVetoableCollectionChangeListeners()
          Return an array of all VetoableCollectionChangeListeners, or an empty array if none are registered.
 void removeCollectionChangeListener(CollectionChangeListener<E> l)
          Remove the specified collection change listener.
 void removeVetoableCollectionChangeListener(VetoableCollectionChangeListener<E> l)
          Remove the specified vetoable collection change listener.
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

addCollectionChangeListener

void addCollectionChangeListener(CollectionChangeListener<E> l)
Add the specified collection change listener.

Parameters:
l - collection change listener to add

removeCollectionChangeListener

void removeCollectionChangeListener(CollectionChangeListener<E> l)
Remove the specified collection change listener.

Parameters:
l - collection change listener to remove

addVetoableCollectionChangeListener

void addVetoableCollectionChangeListener(VetoableCollectionChangeListener<E> l)
Add the specified vetoable collection change listener.

Parameters:
l - vetoable collection change listener to add

removeVetoableCollectionChangeListener

void removeVetoableCollectionChangeListener(VetoableCollectionChangeListener<E> l)
Remove the specified vetoable collection change listener.

Parameters:
l - vetoable collection change listener to remove

getCollectionChangeListeners

CollectionChangeListener<E>[] getCollectionChangeListeners()
Return an array of all CollectionChangeListeners, or an empty array if none are registered.

Returns:
an array of all CollectionChangeListeners, or an empty array if none are registered

getCollectionChangeListenerCount

int getCollectionChangeListenerCount()
Return the number of CollectionChangeListeners registered to this observable collection.

Returns:
the number of CollectionChangeListeners registered to this observable collection

getVetoableCollectionChangeListeners

VetoableCollectionChangeListener<E>[] getVetoableCollectionChangeListeners()
Return an array of all VetoableCollectionChangeListeners, or an empty array if none are registered.

Returns:
an array of all VetoableCollectionChangeListeners, or an empty array if none are registered

getVetoableCollectionChangeListenerCount

int getVetoableCollectionChangeListenerCount()
Return the number of VetoableCollectionChangeListeners registered to this observable collection.

Returns:
the number of VetoableCollectionChangeListeners registered to this observable collection


Copyright (c) 2003-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).