org.progeeks.util
Class ListPropertyChangeListener

java.lang.Object
  extended by org.progeeks.util.ListPropertyChangeListener
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class ListPropertyChangeListener
extends java.lang.Object
implements java.beans.PropertyChangeListener

Provides convenience methods for subclasses to override so that they don't have to manually implement the list change extraction by themselves.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Constructor Summary
ListPropertyChangeListener()
           
 
Method Summary
protected  void itemDeleted(java.lang.Object source, int index, java.util.List oldList, java.util.List newList)
          Called when an item has been deleted.
protected  void itemInserted(java.lang.Object source, int index, java.util.List oldList, java.util.List newList)
          Called when an item has been inserted.
protected  void itemUpdated(java.lang.Object source, int index, java.util.List oldList, java.util.List newList)
          Called when an item has been replaced.
 void propertyChange(java.beans.PropertyChangeEvent event)
          Iterates through the information contain in the event and calls one of the other methods as appropriate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListPropertyChangeListener

public ListPropertyChangeListener()
Method Detail

itemInserted

protected void itemInserted(java.lang.Object source,
                            int index,
                            java.util.List oldList,
                            java.util.List newList)
Called when an item has been inserted.


itemUpdated

protected void itemUpdated(java.lang.Object source,
                           int index,
                           java.util.List oldList,
                           java.util.List newList)
Called when an item has been replaced.


itemDeleted

protected void itemDeleted(java.lang.Object source,
                           int index,
                           java.util.List oldList,
                           java.util.List newList)
Called when an item has been deleted.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Iterates through the information contain in the event and calls one of the other methods as appropriate.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Copyright © 2002-2003 Paul Speed. All Rights Reserved.