Packagesystem.events
Classpublic class EventListenerBatch
InheritanceEventListenerBatch Inheritance Object
Implements Collection, EventListener

The EventListenerBatch objects handle several EventListener as one EventListener.



Public Methods
 MethodDefined By
  
EventListenerBatch(init:* = null)
Creates a new EventListenerBatch instance.
EventListenerBatch
  
add(o:*):Boolean
Inserts an element in the collection.
EventListenerBatch
  
clear():void
Removes all elements in the collection.
EventListenerBatch
  
clone():*
Returns a shallow copy of this instance.
EventListenerBatch
  
contains(o:*):Boolean
Returns true if this collection contains the specified element.
EventListenerBatch
  
get(key:*):*
Returns the element from this collection at the passed key index.
EventListenerBatch
  
handleEvent(e:Event):void
Handles the event.
EventListenerBatch
  
indexOf(o:*, fromIndex:uint = 0):int
Returns the index of an element in the collection.
EventListenerBatch
  
isEmpty():Boolean
Returns true if this collection contains no elements.
EventListenerBatch
  
Returns the iterator reference of the object.
EventListenerBatch
  
remove(o:*):*
Removes a single instance of the specified element from this collection, if it is present (optional operation).
EventListenerBatch
  
size():uint
Returns the number of elements in this collection.
EventListenerBatch
  
toArray():Array
Returns an array containing all of the elements in this collection.
EventListenerBatch
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
EventListenerBatch
  
toString():String
Returns the string representation of this instance.
EventListenerBatch
  
Returns the vector containing all of the Runnable objects in this batch.
EventListenerBatch
Constructor Detail
EventListenerBatch()Constructor
public function EventListenerBatch(init:* = null)

Creates a new EventListenerBatch instance.

Parameters
init:* (default = null) — The optional Array or Vector of EventListener objects to fill the batch.
Method Detail
add()method
public function add(o:*):Boolean

Inserts an element in the collection.

Parameters

o:*

Returns
Boolean
clear()method 
public function clear():void

Removes all elements in the collection.

clone()method 
public function clone():*

Returns a shallow copy of this instance.

Returns
* — a shallow copy of this instance.
contains()method 
public function contains(o:*):Boolean

Returns true if this collection contains the specified element.

Parameters

o:*

Returns
Booleantrue if this collection contains the specified element.
get()method 
public function get(key:*):*

Returns the element from this collection at the passed key index.

Parameters

key:*

Returns
* — the element from this collection at the passed key index.
handleEvent()method 
public function handleEvent(e:Event):void

Handles the event.

Parameters

e:Event

indexOf()method 
public function indexOf(o:*, fromIndex:uint = 0):int

Returns the index of an element in the collection.

Parameters

o:*
 
fromIndex:uint (default = 0)

Returns
int — the index of an element in the collection.
isEmpty()method 
public function isEmpty():Boolean

Returns true if this collection contains no elements.

Returns
Booleantrue if this collection contains no elements.
iterator()method 
public function iterator():Iterator

Returns the iterator reference of the object.

Returns
Iterator — the iterator reference of the object.
remove()method 
public function remove(o:*):*

Removes a single instance of the specified element from this collection, if it is present (optional operation).

Parameters

o:*

Returns
*
size()method 
public function size():uint

Returns the number of elements in this collection.

Returns
uint — the number of elements in this collection.
toArray()method 
public function toArray():Array

Returns an array containing all of the elements in this collection.

Note: The returned Array is a reference of the internal Array used in the Collection to store the items. It's not a shallow copy of it.

Returns
Array — an array containing all of the elements in this collection.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns the string representation of this instance.

Returns
String — the string representation of this instance.
toVector()method 
public function toVector():Vector.<EventListener>

Returns the vector containing all of the Runnable objects in this batch.

Returns
Vector.<EventListener> — the vector containing all of the Runnable objects in this batch.