ActionScript 2.0 Components Language Reference |
|
|
|
| DeltaItem class | |||
ActionScript Class Name mx.data.components.datasetclasses.DeltaItem
The DeltaItem class provides information about an individual operation performed on a transfer object. It indicates whether a change was made directly to a property of the transfer object or whether the change was made by a method call. It also provides the original state of properties on a transfer object. For example, if the source of the delta packet was a data set, the DeltaItem object contains information about any field that was edited.
In addition to the above, a DeltaItem object can contain server response information such as current value and a message.
|
NOTE |
The DeltaItem class is supported only if you are working in a document that specifies ActionScript 2.0 in its Publish Settings. |
Use the DeltaItem class when accessing the changes in a delta packet. To access these changes, use DeltaPacket.getIterator(), which returns an iterator of deltas. Each delta contains zero or more DeltaItem instances, which you can access through Delta.getItemByName() or Delta.getChangeList().
The following table lists the properties of the DeltaItem class.
|
Property |
Description |
|---|---|
|
If a change is made through a method call, this is the array of values that were passed to the method. This property is read-only. |
|
|
If a change is made to a property, this is the current server value of the property. This property is read-only. |
|
|
The associated delta for the DeltaItem object. This property is read-only. |
|
|
The type of change. |
|
|
The server message associated with the DeltaItem object. |
|
|
The name of the property or method that changed. This property is read-only. |
|
|
If a change was made to a property, this is the new value of the property. This property is read-only. |
|
|
If a change was made to a property, this is the old value of the property. This property is read-only. |
|
|
|
|