com.taursys.model.event
Class ContentValueChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.swing.event.ChangeEvent
          extended bycom.taursys.model.event.ContentChangeEvent
              extended bycom.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

Field Summary
 
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 com.taursys.model.event.ContentChangeEvent
isContentNull
 
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
 

Constructor Detail

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 object
propertyName - the property name which has changed
oldValue - the value before the change occurred (or null if not available)
newValue - the value after the change occured
Method Detail

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.