java.beans
public class PropertyChangeEvent extends EventObject
If the old or new values are unknown (although why that would be I do not know), they may be null. Also, if the set of properties itself has changed, the name should be null, and the old and new values may also be null. Right now Sun put in a propagationId, reserved for future use. Read the comments on the constructor and on setPropagationId for more information.
Since: 1.1
UNKNOWN: udpated to 1.4
Constructor Summary | |
---|---|
PropertyChangeEvent(Object source, String propertyName, Object oldVal, Object newVal)
Create a new PropertyChangeEvent. |
Method Summary | |
---|---|
Object | getNewValue()
Get the property's new value. |
Object | getOldValue()
Get the property's old value. |
Object | getPropagationId()
Get the propagation ID. |
String | getPropertyName()
Get the property name. |
void | setPropagationId(Object propagationId)
Set the propagation ID. |
Parameters: source the Bean containing the property propertyName the property's name oldVal the old value of the property newVal the new value of the property
Throws: IllegalArgumentException if source is null
Returns: the property's new value
Returns: the property's old value
Returns: the propagation ID
See Also: setPropagationId
Returns: the property name
Parameters: propagationId the propagation ID
See Also: getPropagationId