home *** CD-ROM | disk | FTP | other *** search
/ One Click 5 / ONCE005.iso / Interface / it.dig / scripts / __Packages / mx / data / components / datasetclasses / DeltaItem.as < prev    next >
Encoding:
Text File  |  2006-06-12  |  1.6 KB  |  65 lines

  1. class mx.data.components.datasetclasses.DeltaItem extends Object
  2. {
  3.    var __name;
  4.    var __kind;
  5.    var __owner;
  6.    var __oldValue;
  7.    var __newValue;
  8.    var __curValue;
  9.    var __argList;
  10.    var __message;
  11.    static var Property = 0;
  12.    static var Method = 1;
  13.    function DeltaItem(kind, name, init, owner)
  14.    {
  15.       super();
  16.       this.__name = name;
  17.       this.__kind = kind;
  18.       this.__owner = owner;
  19.       if(kind == mx.data.components.datasetclasses.DeltaItem.Property)
  20.       {
  21.          this.__oldValue = init.oldValue;
  22.          this.__newValue = init.newValue;
  23.          this.__curValue = init.curValue;
  24.       }
  25.       else
  26.       {
  27.          this.__argList = init.argList;
  28.       }
  29.       this.__message = init.message != undefined ? init.message : "";
  30.       this.__owner.addDeltaItem(this);
  31.    }
  32.    function get argList()
  33.    {
  34.       return this.__kind != mx.data.components.datasetclasses.DeltaItem.Method ? null : this.__argList;
  35.    }
  36.    function get delta()
  37.    {
  38.       return this.__owner;
  39.    }
  40.    function get kind()
  41.    {
  42.       return this.__kind;
  43.    }
  44.    function get message()
  45.    {
  46.       return this.__message;
  47.    }
  48.    function get name()
  49.    {
  50.       return this.__name;
  51.    }
  52.    function get curValue()
  53.    {
  54.       return this.__curValue;
  55.    }
  56.    function get newValue()
  57.    {
  58.       return this.__kind != mx.data.components.datasetclasses.DeltaItem.Property ? null : this.__newValue;
  59.    }
  60.    function get oldValue()
  61.    {
  62.       return this.__kind != mx.data.components.datasetclasses.DeltaItem.Property ? null : this.__oldValue;
  63.    }
  64. }
  65.