public class PropertyChangeEvent<T> extends java.lang.Object implements IPropertyChangeEvent<T>
IPropertyChangeEvent
where the generics is the type of the
old and new values.Constructor and Description |
---|
PropertyChangeEvent(StateObject source,
java.lang.String propertyName,
T oldValue,
T newValue)
Creates a new
PropertyChangeEvent . |
Modifier and Type | Method and Description |
---|---|
T |
getNewValue()
Returns the new value of the property that changed.
|
T |
getOldValue()
Returns the old value of the property that changed.
|
java.lang.String |
getPropertyName()
Returns the name of the property that changed.
|
<S extends StateObject> |
getSource()
Returns the source where the modification occurred and that fired the event.
|
public PropertyChangeEvent(StateObject source, java.lang.String propertyName, T oldValue, T newValue)
PropertyChangeEvent
.source
- The source where the modification occurred and that fired the eventpropertyName
- The name of the property associated with the property changeoldValue
- The old value of the property that changednewValue
- The new value of the property that changedpublic T getNewValue()
getNewValue
in interface IPropertyChangeEvent<T>
public T getOldValue()
getOldValue
in interface IPropertyChangeEvent<T>
public java.lang.String getPropertyName()
getPropertyName
in interface IPropertyChangeEvent<T>
public <S extends StateObject> S getSource()
getSource
in interface IPropertyChangeEvent<T>