textbender.g.util
Class CollectionEvent<E>

java.lang.Object
  extended by java.util.EventObject
      extended by CollectionEvent<E>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CollectionEvent.ElementAdded, CollectionEvent.ElementRemoved

public abstract class CollectionEvent<E>
extends EventObject

An event generated by a change to a collection.

See Also:
Serialized Form

Nested Class Summary
static class CollectionEvent.ElementAdded<E>
          An event generated by addition to a collection.
static class CollectionEvent.ElementRemoved<E>
          An event generated by removal from a collection.
 
Field Summary
protected  E element
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected CollectionEvent(Object source, E element)
          Creates a CollectionEvent.
 
Method Summary
 E getElement()
          Returns the element that is the object of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

protected final E element
Constructor Detail

CollectionEvent

protected CollectionEvent(Object source,
                          E element)
Creates a CollectionEvent.

Parameters:
source - typically the CollectionListener.Registry where the listener originally registered (not necessarily the collection itself)
element - per getElement()
Method Detail

getElement

public E getElement()
Returns the element that is the object of this event.