org.datamanager.event
Class SetValueEvent

java.lang.Object
  |
  +--org.datamanager.event.DataManagerEventAdapter
        |
        +--org.datamanager.event.SetValueEvent
All Implemented Interfaces:
DataManagerEvent, EntityEvent, EntityValue, KernelEvent, Serializable, ValueEvent

public class SetValueEvent
extends DataManagerEventAdapter
implements ValueEvent

This event is only fired when Entity.setValue() is invoked.

Author:
Matthew Farrellee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datamanager.event.DataManagerEventAdapter
source, time
 
Constructor Summary
SetValueEvent(EventGenerator source, EntityValue oldValue, EntityValue newValue)
          The public constructor used to creare a SetValueEvent.
 
Method Summary
 EntityValue getNewEntityValue()
          Report the new value of the modified Entity.
 EntityValue getOldEntityValue()
          Report the old value of the modified Entity.
 String toString()
          A toString() method to provide a meaningful String representation of this event.
 
Methods inherited from class org.datamanager.event.DataManagerEventAdapter
getSource, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.datamanager.event.DataManagerEvent
getSource, getTime
 

Constructor Detail

SetValueEvent

public SetValueEvent(EventGenerator source,
                     EntityValue oldValue,
                     EntityValue newValue)
The public constructor used to creare a SetValueEvent.

Parameters:
source - The source of this event. Usually 'this.'
oldValue - The old value of the Entity.
newValue - The new value of the Entity.
Method Detail

getOldEntityValue

public EntityValue getOldEntityValue()
Report the old value of the modified Entity.

Returns:
The old value of the Entity that this event came from.

getNewEntityValue

public EntityValue getNewEntityValue()
Report the new value of the modified Entity.

Returns:
The new value of the Entity that this event came from.

toString

public String toString()
A toString() method to provide a meaningful String representation of this event.

Specified by:
toString in interface DataManagerEvent
Specified by:
toString in class DataManagerEventAdapter
Returns:
A meaningful String representation of this event.


See the Helium Website