org.apache.pivot.collections
Class Set.SetListenerList<E>

java.lang.Object
  extended by org.apache.pivot.util.ListenerList<SetListener<E>>
      extended by org.apache.pivot.collections.Set.SetListenerList<E>
All Implemented Interfaces:
Iterable<SetListener<E>>, SetListener<E>
Enclosing interface:
Set<E>

public static class Set.SetListenerList<E>
extends ListenerList<SetListener<E>>
implements SetListener<E>

Set listener list.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.SetListener
SetListener.Adapter<E>
 
Constructor Summary
Set.SetListenerList()
           
 
Method Summary
 void comparatorChanged(Set<E> set, Comparator<E> previousComparator)
          Called when a set's comparator has changed.
 void elementAdded(Set<E> set, E element)
          Called when an element is added to a set.
 void elementRemoved(Set<E> set, E element)
          Called when an element is removed from the set.
 void setCleared(Set<E> set)
          Called when set data has been reset.
 
Methods inherited from class org.apache.pivot.util.ListenerList
add, contains, get, getLength, isEmpty, iterator, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Set.SetListenerList

public Set.SetListenerList()
Method Detail

elementAdded

public void elementAdded(Set<E> set,
                         E element)
Description copied from interface: SetListener
Called when an element is added to a set.

Specified by:
elementAdded in interface SetListener<E>
Parameters:
set - The source of the set event.
element - The element that was added to the set.

elementRemoved

public void elementRemoved(Set<E> set,
                           E element)
Description copied from interface: SetListener
Called when an element is removed from the set.

Specified by:
elementRemoved in interface SetListener<E>
Parameters:
set - The source of the set event.
element - The element that was removed from the set.

setCleared

public void setCleared(Set<E> set)
Description copied from interface: SetListener
Called when set data has been reset.

Specified by:
setCleared in interface SetListener<E>
Parameters:
set - The source of the set event.

comparatorChanged

public void comparatorChanged(Set<E> set,
                              Comparator<E> previousComparator)
Description copied from interface: SetListener
Called when a set's comparator has changed.

Specified by:
comparatorChanged in interface SetListener<E>
Parameters:
set - The source of the event.
previousComparator - The previous comparator value.