| Package | system.events |
| Class | public class EventListenerBatch |
| Inheritance | EventListenerBatch Object |
| Implements | Collection, EventListener |
EventListener as one EventListener.
| Method | Defined 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 | ||
toVector():Vector.<EventListener>
Returns the vector containing all of the Runnable objects in this batch. | EventListenerBatch | ||
| EventListenerBatch | () | Constructor |
public function EventListenerBatch(init:* = null)Creates a new EventListenerBatch instance.
Parametersinit:* (default = null) — The optional Array or Vector of EventListener objects to fill the batch.
|
| add | () | method |
public function add(o:*):BooleanInserts an element in the collection.
Parameters
o:* |
Boolean |
| clear | () | method |
public function clear():voidRemoves 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:* |
Boolean — true 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:* |
* — the element from this collection at the passed key index.
|
| handleEvent | () | method |
public function handleEvent(e:Event):voidHandles the event.
Parameters
e:Event |
| indexOf | () | method |
public function indexOf(o:*, fromIndex:uint = 0):intReturns the index of an element in the collection.
Parameters
o:* | |
fromIndex:uint (default = 0) |
int — the index of an element in the collection.
|
| isEmpty | () | method |
public function isEmpty():Boolean
Returns true if this collection contains no elements.
Boolean — true if this collection contains no elements.
|
| iterator | () | method |
public function iterator():IteratorReturns the iterator reference of the object.
ReturnsIterator — 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:* |
* |
| size | () | method |
public function size():uintReturns the number of elements in this collection.
Returnsuint — the number of elements in this collection.
|
| toArray | () | method |
public function toArray():ArrayReturns 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.
ReturnsArray — an array containing all of the elements in this collection.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of this instance.
ReturnsString — 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.
ReturnsVector.<EventListener> — the vector containing all of the Runnable objects in this batch.
|