dsto.dfc.databeans
Class PropertyEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 Object newValue
           
 Object oldValue
           
 PropertyPath path
           
 boolean transientProperty
           
 
Fields inherited from class java.util.EventObject
source
 
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.
 
Method Summary
 String getName()
          The name of the property that changed.
 IDataObject getObject()
           
 boolean isSameProperty(String property)
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

public final PropertyPath path

oldValue

public final Object oldValue

newValue

public final Object newValue

transientProperty

public final boolean transientProperty
Constructor Detail

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.
Method Detail

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