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