org.progeeks.util
Class MapPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by org.progeeks.util.MapPropertyChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class MapPropertyChangeEvent
extends java.beans.PropertyChangeEvent

An extension to the standard PropertyChangeEvent that provides information about changes to the Map. Normally the map keys will be converted to strings and used as the property name in the standard event. This subclass can also provide the real keys when needed.

Version:
$Revision: 1.2 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapPropertyChangeEvent(java.lang.Object source, MapPropertyChangeEvent event)
          Creates a copy of the specified event but using a different source.
MapPropertyChangeEvent(java.lang.Object source, java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue)
           
 
Method Summary
 java.lang.Object getKey()
          Returns the real object key associated with this event.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
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
 

Constructor Detail

MapPropertyChangeEvent

public MapPropertyChangeEvent(java.lang.Object source,
                              java.lang.Object key,
                              java.lang.Object oldValue,
                              java.lang.Object newValue)

MapPropertyChangeEvent

public MapPropertyChangeEvent(java.lang.Object source,
                              MapPropertyChangeEvent event)
Creates a copy of the specified event but using a different source.

Method Detail

getKey

public java.lang.Object getKey()
Returns the real object key associated with this event.



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