package com.exanimo.events { import flash.events.Event; /** * * * * @langversion ActionScript 3 * @playerversion Flash 9.0.0 * * @author Matthew Tretter * @since 2009.01.14 * */ public class DataChangeEvent extends Event { public static const DATA_CHANGE:String = 'dataChange'; public static const PRE_DATA_CHANGE:String = 'preDataChange'; private var _changeType:String; private var _endIndex:uint; private var _items:Array; private var _startIndex:uint; /** * * * */ public function DataChangeEvent(eventType:String, changeType:String, items:Array, startIndex:int = -1, endIndex:int = -1) { super(eventType, false, false); this._changeType = changeType; this._items = items || []; this._startIndex = startIndex; this._endIndex = endIndex; } // // accessors // /** * * * */ public function get changeType():String { return this._changeType; } /** * * * */ public function get endIndex():uint { return this._endIndex; } /** * * * */ public function get items():Array { return this._items; } /** * * * */ public function get startIndex():uint { return this._startIndex; } // // public methods // /** * * */ override public function clone():Event { return new DataChangeEvent(this.type, this.changeType, this.items, this.startIndex, this.endIndex); } /** * * * */ override public function toString():String { return this.formatToString('DataChangeEvent', 'type', 'changeType', 'items', 'startIndex', 'endIndex'); } } }