Packageorg.openzet.controls.dataGridClasses
Classpublic class DataGridCheckBoxRenderer
InheritanceDataGridCheckBoxRenderer Inheritance mx.controls.CheckBox
SubclassesDataGridHeaderCheckBox

CheckBox ItemRenderer class that extends CheckBox class.

See also

mx.controls.CheckBox
org.openzet.dataGridClasses.DataGridHeaderCheckBox


Public Properties
 PropertyDefined by
  enableFunction : Function
A flag to specify an external function to enable or disable CheckBox instance.
DataGridCheckBoxRenderer
  iconWidth : Number = 14
[static] Static variable that indicates iconWidth.
DataGridCheckBoxRenderer
  labelField : String
A property to specify a dataField which has label data values for each instance.
DataGridCheckBoxRenderer
Public Methods
 MethodDefined by
  
Constructor
DataGridCheckBoxRenderer
Protected Methods
 MethodDefined by
  
clickHandler(event:MouseEvent):void
Internal mouseClick event handler method.
DataGridCheckBoxRenderer
Property detail
enableFunctionproperty
enableFunction:Function  [read-write]

A flag to specify an external function to enable or disable CheckBox instance. External enableFunction should be implemented in a way like

  public function enableFunc(item:Object):Boolean {
    if (item.A == 10) {
     return true;
    } 
    return false;
  }
  
where item is an each row item object.

Implementation
    public function get enableFunction():Function
    public function set enableFunction(value:Function):void
iconWidthproperty 
public static var iconWidth:Number = 14

Static variable that indicates iconWidth. Default value is 14.

labelFieldproperty 
labelField:String  [read-write]

A property to specify a dataField which has label data values for each instance. By default, this instance sets its selected value as true/false through the dataField this itemRenderer instance is being applied. Yet if you specify a labelField, you can also show specific label along with CheckBox's selected/unselected status.

Implementation
    public function get labelField():String
    public function set labelField(value:String):void
Constructor detail
DataGridCheckBoxRenderer()constructor
public function DataGridCheckBoxRenderer()

Constructor

Method detail
clickHandler()method
protected override function clickHandler(event:MouseEvent):void

Internal mouseClick event handler method.

Parameters
event:MouseEvent