class org.aswing.VectorListModel extends AbstractListModel
Interfaces | ||||
List, MutableListModel |
|
The mutable list model vector implementation. @author paling
Class Fields
Instance Fields
Show inherited public instance fields | Hide inherited public instance fields
|
function new(?initalData:Array<Dynamic> = null): Void
Create a VectorListModel instance.
initalData | (optional)the to be copid to the model. |
function appendAll(arr:Array<Dynamic>, ?index:Int = -1): Void
Append all the elements of a array(arr) to the specified position of the vector.
arr | the elements array |
index | the position to be append, default is -1 means the end of the vector. |
function removeRange(fromIndex:Int, toIndex:Int): Array<Dynamic>
Removes 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.)
returns | the elements were removed from the vector |
function subArray(startIndex:Int, length:Int): Array<Dynamic>
Returns a array that contains elements start with startIndex and has length elements.
startIndex | the element started index(include) |
length | length of the elements, if there is not enough elements left, return the elements ended to the end of the vector. |
function valueChangedRange(from:Int, to:Int): Void
Notice the listeners the specified range values changed. [from, to](include "from" and "to").