VectorListCollectionDataDescriptor

public class
feathers.data.VectorListCollectionDataDescriptor

Description

An IListCollectionDataDescriptor implementation for Vectors.

See also:
feathers.data.ListCollection
feathers.data.IListCollectionDataDescriptor

API overview

Constructor

VectorListCollectionDataDescriptor ()
Constructor.

Functions

Public functions

addItemAt ( data: Object , item: Object , index: Number ): Void

Adds an item to the data source, at the specified index

getItemAt ( data: Object , index: Number ): Object

Returns the item at the specified index in the data source

getItemIndex ( data: Object , item: Object ): Number

Determines which index the item appears at within the data source

getLength ( data: Object ): Number

The number of items in the data source

removeAll ( data: Object ): Void

Removes all items from the data source

removeItemAt ( data: Object , index: Number ): Object

Removes the item at the specified index from the data source and returns it

setItemAt ( data: Object , item: Object , index: Number ): Void

Replaces the item at the specified index with a new item

Constructor

VectorListCollectionDataDescriptor ()

Constructor.

Functions

addItemAt ( data: Object , item: Object , index: Number ): Void

Adds an item to the data source, at the specified index.

Parameters

data: Object
item: Object
index: Number


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getItemAt ( data: Object , index: Number ): Object

Returns the item at the specified index in the data source.

Parameters

data: Object
index: Number


getItemIndex ( data: Object , item: Object ): Number

Determines which index the item appears at within the data source. If the item isn't in the data source, returns -1.

Parameters

data: Object
item: Object


getLength ( data: Object ): Number

The number of items in the data source.

Parameters

data: Object


getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

removeAll ( data: Object ): Void

Removes all items from the data source.

Parameters

data: Object


removeItemAt ( data: Object , index: Number ): Object

Removes the item at the specified index from the data source and returns it.

Parameters

data: Object
index: Number


setItemAt ( data: Object , item: Object , index: Number ): Void

Replaces the item at the specified index with a new item.

Parameters

data: Object
item: Object
index: Number


toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.