dsto.dfc.databeans
Class PropertyEvent
java.lang.Object
java.util.EventObject
dsto.dfc.databeans.PropertyEvent
- All Implemented Interfaces:
- Serializable
public class PropertyEvent
- extends EventObject
The information included as part of an IDataObject property change
notification.
- Version:
- $Revision$
- Author:
- mpp
- See Also:
- Serialized Form
Constructor Summary |
PropertyEvent(IDataObject source,
Object property,
Object oldValue,
Object newValue,
boolean transientProperty)
Create a new PropertyEvent. |
PropertyEvent(IDataObject source,
PropertyPath path,
Object oldValue,
Object newValue)
Create a new non-transient PropertyEvent. |
PropertyEvent(IDataObject source,
PropertyPath path,
Object oldValue,
Object newValue,
boolean transientProperty)
Create a new PropertyEvent. |
path
public final PropertyPath path
oldValue
public final Object oldValue
newValue
public final Object newValue
transientProperty
public final boolean transientProperty
PropertyEvent
public PropertyEvent(IDataObject source,
Object property,
Object oldValue,
Object newValue,
boolean transientProperty)
- Create a new PropertyEvent.
- Parameters:
source
- The source object that the property is a part of.property
- The property name.oldValue
- The old value of the property.newValue
- The new value of the property.transientProperty
- True if the property is transient (ie need not
be persisted across sessions). For example, IDataBean's set this to true
when a default property is changed.- See Also:
PropertyEvent(IDataObject, PropertyPath, Object, Object, boolean)
PropertyEvent
public PropertyEvent(IDataObject source,
PropertyPath path,
Object oldValue,
Object newValue)
- Create a new non-transient PropertyEvent.
- Parameters:
source
- The source object that the property is a part of.path
- The path to the property value.oldValue
- The old value of the property.newValue
- The new value of the property.- See Also:
PropertyEvent(IDataObject, PropertyPath, Object, Object, boolean)
PropertyEvent
public PropertyEvent(IDataObject source,
PropertyPath path,
Object oldValue,
Object newValue,
boolean transientProperty)
- Create a new PropertyEvent.
- Parameters:
source
- The source object that the property is a part of.path
- The path to the property value.oldValue
- The old value of the property.newValue
- The new value of the property.transientProperty
- True if the property is transient (ie need not
be persisted across sessions). For example, IDataBean's set this to true
when a default property is changed.
getObject
public IDataObject getObject()
getName
public String getName()
- The name of the property that changed.
- See Also:
PropertyPath.toString()
isSameProperty
public boolean isSameProperty(String property)
toString
public String toString()
- Overrides:
toString
in class EventObject
Copyright © 2008 Commonwealth of Australia