SpriteCellRenderer_1 class
/******************************************************************************
SpriteCellRenderer_1 class
copyright Flashscript.biz: 2010
CellRenderer class for the DataGrid example (_1).
********************************************************************************/
package
{
import fl.controls.CheckBox;
import fl.controls.listClasses.ICellRenderer;
import fl.controls.listClasses.ListData;
/*
* Extending the CheckBox will place checkbox instances in the whole row
* of the DataGrid.
*/
public class SpriteCellRenderer_1 extends CheckBox implements ICellRenderer
{
protected var _data:Object;
protected var _listData:ListData;
public function SpriteCellRenderer_1 ():void
{
super ();
/*
* This will give each CheckBox instance a label.
*/
label = "Check it out";
}
public function get data ():Object
{
return _data;
}
public function set data (value:Object):void
{
_data = value;
}
public function get listData ():ListData
{
return _listData;
}
public function set listData (value:ListData):void
{
_listData = value;
}
}
}