PropertyChangeEventpublic class PropertyChangeEvent extends EventObject An event that indicates that a constraint or a boundary of a property has
changed. |
Fields Summary |
---|
private static final long | serialVersionUID | String | propertyName | Object | oldValue | Object | newValue | Object | propagationId |
Constructors Summary |
---|
public PropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue)The constructor used to create a new {@code PropertyChangeEvent}.
super(source);
this.propertyName = propertyName;
this.oldValue = oldValue;
this.newValue = newValue;
|
Methods Summary |
---|
public java.lang.Object | getNewValue()Returns the new value that the property now has. If the new value is
unknown this method returns null.
return newValue;
| public java.lang.Object | getOldValue()Returns the old value that the property had. If the old value is unknown
this method returns null.
return oldValue;
| public java.lang.Object | getPropagationId()Returns the propagationId object. This is reserved for future use. Beans
1.0 demands that a listener receiving this property and then sending its
own PropertyChangeEvent sets the received propagationId on the new
PropertyChangeEvent's propagationId field.
return propagationId;
| public java.lang.String | getPropertyName()Returns the name of the property that has changed. If an unspecified set
of properties has changed it returns null.
return propertyName;
| public void | setPropagationId(java.lang.Object propagationId)Sets the propagationId object.
this.propagationId = propagationId;
|
|