Packagecom.adobe.rtc.util
Classpublic class UtilArrayCollection
InheritanceUtilArrayCollection Inheritance flash.utils.Proxy
Implementsflash.events.IEventDispatcher

The UtilArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces Its primarily used in non-flex environment to replace the mx.collections.ArrayCollection



Public Properties
 PropertyDefined by
  length : int
[read-only]
UtilArrayCollection
  source : Array
UtilArrayCollection
Protected Properties
 PropertyDefined by
  _arrayCollection : Array
UtilArrayCollection
  _dispatcher : EventDispatcher
UtilArrayCollection
Public Methods
 MethodDefined by
  
UtilArrayCollection
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
UtilArrayCollection
  
addItem(p_item:Object):void
UtilArrayCollection
  
addItemAt(p_item:Object, p_index:int):void
UtilArrayCollection
  
contains(p_items:Object):Boolean
UtilArrayCollection
  
dispatchEvent(evt:Event):Boolean
UtilArrayCollection
  
getItemAt(p_index:int):*
UtilArrayCollection
  
getItemIndex(p_item:Object):int
UtilArrayCollection
  
hasEventListener(type:String):Boolean
UtilArrayCollection
  
removeAll():void
UtilArrayCollection
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
UtilArrayCollection
  
removeItemAt(p_index:int):void
UtilArrayCollection
  
setItemAt(p_item:Object, p_index:int):void
UtilArrayCollection
  
willTrigger(type:String):Boolean
UtilArrayCollection
Events
 EventSummaryDefined by
  
add
 UtilArrayCollection
    UtilArrayCollection
    UtilArrayCollection
    UtilArrayCollection
Property detail
_arrayCollectionproperty
protected var _arrayCollection:Array
_dispatcherproperty 
protected var _dispatcher:EventDispatcher
lengthproperty 
length:int  [read-only]Implementation
    public function get length():int
sourceproperty 
source:Array  [read-write]Implementation
    public function get source():Array
    public function set source(value:Array):void
Constructor detail
UtilArrayCollection()constructor
public function UtilArrayCollection()
Method detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidParameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)
addItem()method 
public function addItem(p_item:Object):voidParameters
p_item:Object
addItemAt()method 
public function addItemAt(p_item:Object, p_index:int):voidParameters
p_item:Object
 
p_index:int
contains()method 
public function contains(p_items:Object):BooleanParameters
p_items:Object

Returns
Boolean
dispatchEvent()method 
public function dispatchEvent(evt:Event):BooleanParameters
evt:Event

Returns
Boolean
getItemAt()method 
public function getItemAt(p_index:int):*Parameters
p_index:int

Returns
*
getItemIndex()method 
public function getItemIndex(p_item:Object):intParameters
p_item:Object

Returns
int
hasEventListener()method 
public function hasEventListener(type:String):BooleanParameters
type:String

Returns
Boolean
removeAll()method 
public function removeAll():void
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidParameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)
removeItemAt()method 
public function removeItemAt(p_index:int):voidParameters
p_index:int
setItemAt()method 
public function setItemAt(p_item:Object, p_index:int):voidParameters
p_item:Object
 
p_index:int
willTrigger()method 
public function willTrigger(type:String):BooleanParameters
type:String

Returns
Boolean
Event detail
addevent 
Event object type: ArrayCollectionChangeEvent

removeevent  
Event object type: ArrayCollectionChangeEvent

removeAllevent  
Event object type: ArrayCollectionChangeEvent

replaceevent  
Event object type: ArrayCollectionChangeEvent





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/util/UtilArrayCollection.html