Joda System API

org.joda.property
Class PropertyValueChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.beans.PropertyChangeEvent
              |
              +--org.joda.property.PropertyValueChangeEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ListPropertyChangeEvent

public class PropertyValueChangeEvent
extends java.beans.PropertyChangeEvent

PropertyValueChangeEvent is the event object sent when the value of a property is changed.

Author:
Stephen Colebourne
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected PropertyValueChangeEvent(Property source, java.lang.Object oldValue, java.lang.Object newValue)
          Constructor.
 
Method Summary
static PropertyValueChangeEvent createValueChangedEvent(Property source, java.lang.Object oldValue, java.lang.Object newValue)
          Static factory constructor.
 Bean getBean()
          Get the bean which changed.
 Property getProperty()
          Get the property which changed.
 
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

PropertyValueChangeEvent

protected PropertyValueChangeEvent(Property source,
                                   java.lang.Object oldValue,
                                   java.lang.Object newValue)
Constructor.

Parameters:
source - the property that fired the event
oldValue - the old value of the property
newValue - the new value of the property
Method Detail

createValueChangedEvent

public static PropertyValueChangeEvent createValueChangedEvent(Property source,
                                                               java.lang.Object oldValue,
                                                               java.lang.Object newValue)
Static factory constructor.

Parameters:
source - the property that fired the event
oldValue - the old value of the property
newValue - the new value of the property

getBean

public Bean getBean()
Get the bean which changed.

Returns:
the changed bean

getProperty

public Property getProperty()
Get the property which changed.

Returns:
the changed property

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.