Packageflare.vis.events
Classpublic class DataEvent
InheritanceDataEvent Inheritance flash.events.Event
SubclassesSelectionEvent

Event fired when a data collection is modified.



Public Properties
 PropertyDefined by
  edge : EdgeSprite
[read-only] The first element in the event list as an EdgeSprite.
DataEvent
  item : DataSprite
[read-only] The first element in the event list as a DataSprite.
DataEvent
  items : Array
[read-only] The list of effected data items.
DataEvent
  length : int
[read-only] The number of items in this data event.
DataEvent
  list : DataList
[read-only] The data list (if any) the items belong to.
DataEvent
  node : NodeSprite
[read-only] The first element in the event list as a NodeSprite.
DataEvent
  object : Object
[read-only] The first element in the event list as an Object.
DataEvent
Public Methods
 MethodDefined by
  
DataEvent(type:String, items:DataList, list:* = null)
Creates a new DataEvent.
DataEvent
  
clone():Event
DataEvent
Public Constants
 ConstantDefined by
  ADD : String = "add"
[static] A data added event.
DataEvent
  REMOVE : String = "remove"
[static] A data removed event.
DataEvent
  UPDATE : String = "update"
[static] A data updated event.
DataEvent
Property detail
edgeproperty
edge:EdgeSprite  [read-only]

The first element in the event list as an EdgeSprite.

Implementation
    public function get edge():EdgeSprite
itemproperty 
item:DataSprite  [read-only]

The first element in the event list as a DataSprite.

Implementation
    public function get item():DataSprite
itemsproperty 
items:Array  [read-only]

The list of effected data items.

Implementation
    public function get items():Array
lengthproperty 
length:int  [read-only]

The number of items in this data event.

Implementation
    public function get length():int
listproperty 
list:DataList  [read-only]

The data list (if any) the items belong to.

Implementation
    public function get list():DataList
nodeproperty 
node:NodeSprite  [read-only]

The first element in the event list as a NodeSprite.

Implementation
    public function get node():NodeSprite
objectproperty 
object:Object  [read-only]

The first element in the event list as an Object.

Implementation
    public function get object():Object
Constructor detail
DataEvent()constructor
public function DataEvent(type:String, items:DataList, list:* = null)

Creates a new DataEvent.

Parameters
type:String — the event type (ADD, REMOVE, or UPDATE)
 
items:DataList — the DataSprite(s) that were added, removed, or updated
 
list:* (default = null) — (optional) the data list that was modified
Method detail
clone()method
public override function clone():Event

Returns
Event
Constant detail
ADDconstant
public static const ADD:String = "add"

A data added event.

REMOVEconstant 
public static const REMOVE:String = "remove"

A data removed event.

UPDATEconstant 
public static const UPDATE:String = "update"

A data updated event.