com.taursys.model.event
Class ContentValueChangeEvent
java.lang.Object
java.util.EventObject
javax.swing.event.ChangeEvent
com.taursys.model.event.ContentChangeEvent
com.taursys.model.event.ContentValueChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ContentValueChangeEvent
- extends ContentChangeEvent
ContentValueChangeEvent indicates a change to a property or value of the contents of a ValueHolder.
- Version:
- 1.0
- Author:
- Marty Phelan
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ContentValueChangeEvent(ValueHolder source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Constructs a new ContentValueChangeEvent with the given information. |
Method Summary |
java.lang.Object |
getNewValue()
Gets the value after the change occured. |
java.lang.Object |
getOldValue()
Gets the value before the change occurred (or null if not available). |
java.lang.String |
getPropertyName()
Gets the property name which has changed. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContentValueChangeEvent
public ContentValueChangeEvent(ValueHolder source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
- Constructs a new ContentValueChangeEvent with the given information.
- Parameters:
source
- the source value holder which holds the objectpropertyName
- the property name which has changedoldValue
- the value before the change occurred (or null if not available)newValue
- the value after the change occured
getPropertyName
public java.lang.String getPropertyName()
- Gets the property name which has changed.
- Returns:
- property name which has changed
getOldValue
public java.lang.Object getOldValue()
- Gets the value before the change occurred (or null if not available).
- Returns:
- the value before the change occurred (or null if not available)
getNewValue
public java.lang.Object getNewValue()
- Gets the value after the change occured.
- Returns:
- the value after the change occured
Copyright © 2007 Martin T Phelan. All Rights Reserved.