Packagecom.flexicious.nestedtreedatagrid.valueobjects
Classpublic class ChangeInfo
InheritanceChangeInfo Inheritance Object

Class to keep track of changes - additions, modifications and deletions to the data provider.



Public Properties
 PropertyDefined By
  changedItem : Object
The item that was changed
ChangeInfo
  changedProperty : String
The property on the item that was changed
ChangeInfo
  changeLevelNestDepth : int
The level nest depth at which the change happened.
ChangeInfo
  changeType : String
One of the three change types : CHANGE_TYPE_INSERT, CHANGE_TYPE_UPDATE or CHANGE_TYPE_DELETE
ChangeInfo
  newValue : *
The value after the change
ChangeInfo
  origValue : *
The original value
ChangeInfo
  previousValue : *
The value before the change
ChangeInfo
Public Methods
 MethodDefined By
  
ChangeInfo(changedItem:Object, changeLevelNestDepth:int, changedProperty:String, previousValue:*, newValue:*, changeType:String)
ChangeInfo
  
toString():String
ChangeInfo
Public Constants
 ConstantDefined By
  CHANGE_TYPE_DELETE : String = delete
[static]
ChangeInfo
  CHANGE_TYPE_INSERT : String = insert
[static]
ChangeInfo
  CHANGE_TYPE_UPDATE : String = update
[static]
ChangeInfo
Property Detail
changedItemproperty
public var changedItem:Object

The item that was changed

changedPropertyproperty 
public var changedProperty:String

The property on the item that was changed

changeLevelNestDepthproperty 
public var changeLevelNestDepth:int

The level nest depth at which the change happened.

changeTypeproperty 
public var changeType:String

One of the three change types : CHANGE_TYPE_INSERT, CHANGE_TYPE_UPDATE or CHANGE_TYPE_DELETE

newValueproperty 
public var newValue:*

The value after the change

origValueproperty 
public var origValue:*

The original value

previousValueproperty 
public var previousValue:*

The value before the change

Constructor Detail
ChangeInfo()Constructor
public function ChangeInfo(changedItem:Object, changeLevelNestDepth:int, changedProperty:String, previousValue:*, newValue:*, changeType:String)



Parameters
changedItem:Object
 
changeLevelNestDepth:int
 
changedProperty:String
 
previousValue:*
 
newValue:*
 
changeType:String
Method Detail
toString()method
public function toString():String

Returns
String
Constant Detail
CHANGE_TYPE_DELETEConstant
public static const CHANGE_TYPE_DELETE:String = delete

CHANGE_TYPE_INSERTConstant 
public static const CHANGE_TYPE_INSERT:String = insert

CHANGE_TYPE_UPDATEConstant 
public static const CHANGE_TYPE_UPDATE:String = update