LimeWire Collection Component API

org.limewire.collection.glazedlists
Class AbstractListEventListener<E>

java.lang.Object
  extended by org.limewire.collection.glazedlists.AbstractListEventListener<E>
All Implemented Interfaces:
ca.odell.glazedlists.event.ListEventListener<E>, EventListener

public abstract class AbstractListEventListener<E>
extends Object
implements ca.odell.glazedlists.event.ListEventListener<E>

An abstract ListEventListener for use with glazed lists when you really need the deleted object. Use this class sparingly, as it will cache the contents of the list.


Constructor Summary
AbstractListEventListener()
           
 
Method Summary
 void install(ca.odell.glazedlists.EventList<E> source)
           
protected abstract  void itemAdded(E item, int idx, ca.odell.glazedlists.EventList<E> source)
          Notification that an item was added.
protected abstract  void itemRemoved(E item, int idx, ca.odell.glazedlists.EventList<E> source)
          Notification that an item was removed.
protected abstract  void itemUpdated(E item, E priorItem, int idx, ca.odell.glazedlists.EventList<E> source)
          Notification that an item was replaced.
 void listChanged(ca.odell.glazedlists.event.ListEvent<E> changes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractListEventListener

public AbstractListEventListener()
Method Detail

install

public void install(ca.odell.glazedlists.EventList<E> source)

listChanged

public void listChanged(ca.odell.glazedlists.event.ListEvent<E> changes)
Specified by:
listChanged in interface ca.odell.glazedlists.event.ListEventListener<E>

itemAdded

protected abstract void itemAdded(E item,
                                  int idx,
                                  ca.odell.glazedlists.EventList<E> source)
Notification that an item was added.


itemRemoved

protected abstract void itemRemoved(E item,
                                    int idx,
                                    ca.odell.glazedlists.EventList<E> source)
Notification that an item was removed.


itemUpdated

protected abstract void itemUpdated(E item,
                                    E priorItem,
                                    int idx,
                                    ca.odell.glazedlists.EventList<E> source)
Notification that an item was replaced.


LimeWire Collection Component API

Copyright © 2009 Lime Wire LLC. All Rights Reserved.