org.beanfabrics.event
Class BnPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by org.beanfabrics.event.BnPropertyChangeEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.util.EventObject>, FollowUpEvent

public class BnPropertyChangeEvent
extends java.beans.PropertyChangeEvent
implements FollowUpEvent

An event which indicates that some change has occurred in some PresentationModel.

This event is a subclass of PropertyChangeEvent that implements the FollowUpEvent. A FollowUpEvent is created when an event is passed from a child node to a parent node. By calling getCause() you can track the chain of events from the received event to the orignal trigger.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BnPropertyChangeEvent(java.lang.Object source, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          Constructs a BnPropertyChangeEvent without a trigger.
BnPropertyChangeEvent(java.lang.Object source, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, java.util.EventObject cause)
          Constructs a BnPropertyChangeEvent.
 
Method Summary
 java.util.EventObject getCause()
          Returns the cause of this event.
 java.util.Iterator<java.util.EventObject> iterator()
          Returns an Iterator over all events that caused this event, starting with this event.
 java.lang.String toString()
           
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BnPropertyChangeEvent

public BnPropertyChangeEvent(java.lang.Object source,
                             java.lang.String propertyName,
                             java.lang.Object oldValue,
                             java.lang.Object newValue)
Constructs a BnPropertyChangeEvent without a trigger.

Parameters:
source -
propertyName -
oldValue -
newValue -

BnPropertyChangeEvent

public BnPropertyChangeEvent(java.lang.Object source,
                             java.lang.String propertyName,
                             java.lang.Object oldValue,
                             java.lang.Object newValue,
                             java.util.EventObject cause)
Constructs a BnPropertyChangeEvent.

Parameters:
source -
propertyName -
oldValue -
newValue -
cause -
Method Detail

getCause

public java.util.EventObject getCause()
Returns the cause of this event.

Specified by:
getCause in interface FollowUpEvent
Returns:
the cause of this event

iterator

public java.util.Iterator<java.util.EventObject> iterator()
Returns an Iterator over all events that caused this event, starting with this event.

Specified by:
iterator in interface java.lang.Iterable<java.util.EventObject>
Returns:
an Iterator over all events that caused this event

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject