Main Page | Packages | Class Tree | Index | Help

xp.data

class DataLookupIndex

Object
  |
  +--xp.data.DataLookupIndex


class DataLookupIndex
extends Object

Internal helper class for ListDataSource


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
field: String
The field in list to index

public
index: Object
Index associative array

public
list: Array
The data list encapsulated by this view2

Constructor

public
DataLookupIndex ( list: Array, field: String)


Method Summary

public
buildIndex ( )
Build the lookup index**/

public
lookup ( key: String ): Object
Lookup an item in the index



Field Documentation

field

public var field: String
The field in list to index

index

public var index: Object
Index associative array

list

public var list: Array
The data list encapsulated by this view2


Constructor Documentation

DataLookupIndex

public function DataLookupIndex(list: Array,
 field: String)

Method Documentation

buildIndex

public function buildIndex()
Build the lookup index**/

lookup

public function lookup(key: String): Object
Lookup an item in the index

Parameters:
key
The key of the item to lookup
Returns:
The item found, or null if not found


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc