| Package | org.aswing |
| Class | public class VectorListModel |
| Inheritance | VectorListModel AbstractListModel |
| Implements | List, MutableListModel |
| Property | Defined by | ||
|---|---|---|---|
| _elements : Array | VectorListModel | ||
| Method | Defined by | ||
|---|---|---|---|
|
VectorListModel(initalData:Array = null)
Create a VectorListModel instance.
| VectorListModel | ||
![]() |
addListDataListener(l:ListDataListener):void
| AbstractListModel | |
|
append(obj:*, index:int = -1):void
| VectorListModel | ||
|
appendAll(arr:Array, index:int = -1):void
Append all the elements of a array(arr) to the specified position of the
vector.
| VectorListModel | ||
|
appendList(list:List, index:int = -1):void
| VectorListModel | ||
|
clear():void
| VectorListModel | ||
|
contains(obj:*):Boolean
| VectorListModel | ||
|
first():*
| VectorListModel | ||
|
get(i:int):*
| VectorListModel | ||
|
getElementAt(i:int):*
implemented ListMode
| VectorListModel | ||
|
getSize():int
Implemented ListMode
| VectorListModel | ||
|
indexOf(obj:*):int
| VectorListModel | ||
|
insertElementAt(item:*, index:int):void
| VectorListModel | ||
|
isEmpty():Boolean
| VectorListModel | ||
|
last():*
| VectorListModel | ||
|
pop():*
| VectorListModel | ||
|
remove(obj:*):*
| VectorListModel | ||
|
removeAt(index:int):*
| VectorListModel | ||
|
removeElementAt(index:int):void
| VectorListModel | ||
![]() | AbstractListModel | ||
|
removeRange(fromIndex:int, toIndex:int):Array
Removes from this List all of the elements whose index is between fromIndex,
and toIndex(both inclusive).
| VectorListModel | ||
|
replaceAt(index:int, obj:*):*
| VectorListModel | ||
|
shift():*
| VectorListModel | ||
|
size():int
| VectorListModel | ||
|
sort(compare:Object, options:int):Array
| VectorListModel | ||
|
sortOn(key:Object, options:int):Array
| VectorListModel | ||
|
subArray(startIndex:int, length:int):Array
Returns a array that contains elements start with startIndex and has length elements.
| VectorListModel | ||
|
toArray():Array
| VectorListModel | ||
|
toString():String
| VectorListModel | ||
|
valueChanged(obj:*):void
Notice the listeners the specified obj's value changed.
| VectorListModel | ||
|
valueChangedAt(index:int):void
Notice the listeners the specified obj's value changed.
| VectorListModel | ||
|
valueChangedRange(from:int, to:int):void
Notice the listeners the specified range values changed.
| VectorListModel | ||
| Constant | Defined by | ||
|---|---|---|---|
| CASEINSENSITIVE : int = 1 [static]
| VectorListModel | ||
| DESCENDING : int = 2 [static]
| VectorListModel | ||
| NUMERIC : int = 16 [static]
| VectorListModel | ||
| RETURNINDEXEDARRAY : int = 8 [static]
| VectorListModel | ||
| UNIQUESORT : int = 4 [static]
| VectorListModel | ||
| _elements | property |
protected var _elements:Array
| VectorListModel | () | constructor |
public function VectorListModel(initalData:Array = null)Create a VectorListModel instance.
ParametersinitalData:Array (default = null) — (optional)the to be copid to the model.
|
| append | () | method |
public function append(obj:*, index:int = -1):voidParameters
obj:* |
|
index:int (default = -1) |
| appendAll | () | method |
public function appendAll(arr:Array, index:int = -1):voidAppend all the elements of a array(arr) to the specified position of the vector.
Parametersarr:Array — the elements array
|
|
index:int (default = -1) — the position to be append, default is -1 means the end of the vector.
|
| appendList | () | method |
public function appendList(list:List, index:int = -1):voidParameters
list:List |
|
index:int (default = -1) |
| clear | () | method |
public function clear():void
| contains | () | method |
public function contains(obj:*):BooleanParameters
obj:* |
Boolean |
| first | () | method |
public function first():*
Returns
* |
| get | () | method |
public function get(i:int):*Parameters
i:int |
* |
| getElementAt | () | method |
public function getElementAt(i:int):*implemented ListMode
Parametersi:int |
* |
| getSize | () | method |
public function getSize():intImplemented ListMode
Returnsint |
| indexOf | () | method |
public function indexOf(obj:*):intParameters
obj:* |
int |
| insertElementAt | () | method |
public function insertElementAt(item:*, index:int):voidParameters
item:* |
|
index:int |
See also
| isEmpty | () | method |
public function isEmpty():Boolean
Returns
Boolean |
| last | () | method |
public function last():*
Returns
* |
| pop | () | method |
public function pop():*
Returns
* |
| remove | () | method |
public function remove(obj:*):*Parameters
obj:* |
* |
| removeAt | () | method |
public function removeAt(index:int):*Parameters
index:int |
* |
| removeElementAt | () | method |
| removeRange | () | method |
public function removeRange(fromIndex:int, toIndex:int):ArrayRemoves from this List all of the elements whose index is between fromIndex, and toIndex(both inclusive). Shifts any succeeding elements to the left (reduces their index). This call shortens the ArrayList by (toIndex - fromIndex) elements. (If toIndex==fromIndex, this operation has no effect.)
ParametersfromIndex:int |
|
toIndex:int |
Array — the elements were removed from the vector
|
| replaceAt | () | method |
public function replaceAt(index:int, obj:*):*Parameters
index:int |
|
obj:* |
* |
| shift | () | method |
public function shift():*
Returns
* |
| size | () | method |
public function size():int
Returns
int |
| sort | () | method |
public function sort(compare:Object, options:int):ArrayParameters
compare:Object |
|
options:int |
Array |
| sortOn | () | method |
public function sortOn(key:Object, options:int):ArrayParameters
key:Object |
|
options:int |
Array |
| subArray | () | method |
public function subArray(startIndex:int, length:int):ArrayReturns a array that contains elements start with startIndex and has length elements.
ParametersstartIndex:int — the element started index(include)
|
|
length:int — length of the elements, if there is not enough elements left, return the elements ended to the end of the vector.
|
Array |
| toArray | () | method |
public function toArray():Array
Returns
Array |
| toString | () | method |
public function toString():String
Returns
String |
| valueChanged | () | method |
public function valueChanged(obj:*):voidNotice the listeners the specified obj's value changed.
Parametersobj:* |
| valueChangedAt | () | method |
public function valueChangedAt(index:int):voidNotice the listeners the specified obj's value changed.
Parametersindex:int |
| valueChangedRange | () | method |
public function valueChangedRange(from:int, to:int):voidNotice the listeners the specified range values changed. [from, to](include "from" and "to").
Parametersfrom:int |
|
to:int |
| CASEINSENSITIVE | constant |
public static const CASEINSENSITIVE:int = 1
| DESCENDING | constant |
public static const DESCENDING:int = 2
| NUMERIC | constant |
public static const NUMERIC:int = 16
| RETURNINDEXEDARRAY | constant |
public static const RETURNINDEXEDARRAY:int = 8
| UNIQUESORT | constant |
public static const UNIQUESORT:int = 4