org.beanfabrics.event
Class BnPropertyChangeEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
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
Fields inherited from class java.util.EventObject |
source |
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 |
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
-
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