| Package | com.addicted2flash.util |
| Class | public class ObservableArrayList |
| Inheritance | ObservableArrayList ArrayList AbstractArrayList AbstractArrayCollection |
| Implements | IListObservable |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | list : Array
return the internal list.
| AbstractArrayCollection | |
![]() | listIterator : IListIterator
Returns the
IListIterator of the IList. | AbstractArrayList | |
| listObserverCount : int [read-only]
Returns the total count of registered
IListObserver. | ObservableArrayList | ||
| Method | Defined by | ||
|---|---|---|---|
|
ObservableArrayList(field:Array = null)
Creates a new
ObservableArrayList. | ObservableArrayList | ||
|
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| ObservableArrayList | ||
![]() |
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| AbstractArrayCollection | |
![]() |
addAllAt(i:int, c:ICollection):void
Adds all of the elements in the specified collection to this collection at a specified
position in this list.
| AbstractArrayList | |
|
addAt(i:int, o:*):void
Inserts the specified element at the specified position in this list (optional operation).
| ObservableArrayList | ||
|
addListObserver(o:IListObserver):void
Adds an
IListObserver to the set of observers for this object,
provided that it is not the same as some observer already in the set. | ObservableArrayList | ||
|
clear():void
Removes all of the elements from this list (optional operation).
| ObservableArrayList | ||
|
Returns a copy of the
ICollection. | ObservableArrayList | ||
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| AbstractArrayCollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| AbstractArrayCollection | |
|
dispose():void
free memory for garbage collection.
| ObservableArrayList | ||
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| AbstractArrayCollection | |
![]() |
indexOf(o:*):int
Returns the index in this list of the first occurrence of the specified element, or -1 if this list
does not contain this element.
| AbstractArrayList | |
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| AbstractArrayCollection | |
![]() |
Returns an iterator over the elements in this list.
| AbstractArrayCollection | |
![]() |
lastIndexOf(o:*):int
Returns the index in this list of the last occurrence of the specified element, or -1 if this list
does not contain this element.
| AbstractArrayList | |
|
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| ObservableArrayList | ||
![]() |
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| AbstractArrayCollection | |
|
removeArea(fromIndex:int, toIndex:int):IList
Removes an area in the current list.
| ObservableArrayList | ||
|
removeAt(i:int):*
Removes the element at the specified position in this list (optional operation).
| ObservableArrayList | ||
|
removeListObserver(o:IListObserver):void
Deletes an
IListObserver from the set of observers of this object. | ObservableArrayList | ||
![]() |
setAt(i:int, o:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
| AbstractArrayList | |
![]() |
size():int
Returns the number of elements in this list.
| AbstractArrayCollection | |
![]() |
| ArrayList | |
![]() |
swap(o1:*, o2:*):Boolean
| AbstractArrayList | |
![]() |
swapAt(i1:int, i2:int):Boolean
| AbstractArrayList | |
![]() |
toArray():Array
Converts the collection into an array.
| AbstractArrayCollection | |
|
toString():String
String representation of
ObservableArrayList. | ObservableArrayList | ||
| listObserverCount | property |
listObserverCount:int [read-only]
Returns the total count of registered IListObserver.
public function get listObserverCount():int
| ObservableArrayList | () | constructor |
public function ObservableArrayList(field:Array = null)
Creates a new ObservableArrayList.
field:Array (default = null) — an existing Array
|
| add | () | method |
public override function add(o:*):voidAppends the specified element to the end of this list (optional operation).
Parameterso:* |
| addAt | () | method |
public override function addAt(i:int, o:*):voidInserts the specified element at the specified position in this list (optional operation).
Parametersi:int — index
|
|
o:* |
| addListObserver | () | method |
public function addListObserver(o:IListObserver):void
Adds an IListObserver to the set of observers for this object,
provided that it is not the same as some observer already in the set.
o:IListObserver — an IListObserver to be added.
|
| clear | () | method |
public override function clear():voidRemoves all of the elements from this list (optional operation).
| clone | () | method |
public override function clone():ICollection
Returns a copy of the ICollection.
ICollection —
a copy of the ICollection
|
| dispose | () | method |
public override function dispose():voidfree memory for garbage collection.
| remove | () | method |
public override function remove(o:*):BooleanRemoves the first occurrence in this list of the specified element (optional operation).
Parameterso:* |
Boolean — true if this collection changed as a result of the call
|
| removeArea | () | method |
public override function removeArea(fromIndex:int, toIndex:int):IListRemoves an area in the current list.
ParametersfromIndex:int — low endpoint (including) of the list
|
|
toIndex:int — high endpoint (excluding) of the list
|
IList —
the removed area
|
| removeAt | () | method |
public override function removeAt(i:int):*Removes the element at the specified position in this list (optional operation).
Parametersi:int — index
|
* — the removed object
|
| removeListObserver | () | method |
public function removeListObserver(o:IListObserver):void
Deletes an IListObserver from the set of observers of this object.
o:IListObserver — the IListObserver to be deleted.
|
| toString | () | method |
public override function toString():String
String representation of ObservableArrayList.
String — String representation of ObservableArrayList
|