;
public var tobeCheckedCells:ArrayList;
public var arrList:ArrayList;
public var rowsHolder:ArrayList=new ArrayList();
public var indices:Vector.;
/**
* this method is helper method to check dataGrid item contains the key, put the item into vector to use in filter/sort tests for later verification
*/
public function getRowsWithColumnContainWords(key:String, dataGrid:DataGrid):Vector.
{
var v:Vector.=new Vector.;
var o:Object;
for (var i:int=0;i-1)
v.push(i);
}else
{
if (dataGrid.dataProvider.getItemAt(i).firstName.indexOf(key)>-1)
v.push(i);
}
}
return v;
}
/**
* this method to add rowIndex/columnIndex into tobechecked selected cell
*/
public function addSelectedCells(rowIndex:int, columnIndex:int):void
{
if (tobeCheckedCells==null) tobeCheckedCells=new ArrayList();
tobeCheckedCells.addItem({"rowIndex":rowIndex, "columnIndex":columnIndex});
}
/**
* this method is to create an arrayList
*/
public function createArrayList():void
{
arrList=new ArrayList();
var obj:Object;
for (var i:int = 0; i < 100; i++)
{
obj=FlexGlobals.topLevelApplication.createItem(i);
arrList.addItem(obj);
}
}
}
]]>