Packagecom.flexicious.controls
Classpublic class TriStateCheckBox
InheritanceTriStateCheckBox Inheritance CheckBox Inheritance mx.controls.CheckBox
Implements ITriStateCheckBoxFilterControl, IDelayedChange
Subclasses CheckBoxRenderer

A Checkbox that implements ITriStateCheckBoxFilterControl (IFilterControl) which enables it to be used within the filtering/binding infrasturcture.

See also

com.flexicious.controls.interfaces.filters.IFilterControl
com.flexicious.controls.interfaces.databindings.IDataBoundControl


Public Properties
 PropertyDefined By
  allowUserToSelectMiddle : Boolean
TriStateCheckBox
 InheritedautoRegister : Boolean
Register with the container on creation complete
CheckBox
 InheritedbindingTriggerEvent : String
The event to trigger the binding on.
CheckBox
  delayDuration : uint = 500
The amount of time (in milliseconds) to wait before dispatching the DELAY_CHANGE event.
TriStateCheckBox
  enableDelayChange : Boolean = true
TriStateCheckBox
 InheritedfilterComparisionType : String
This is usually automatically set, you don't have to manually set it, unless you're sending strings as Date objects.
CheckBox
 InheritedfilterOperation : String
The filter operation to apply to the comparison See the FilterExpression class for a list.
CheckBox
 InheritedfilterTriggerEvent : String
The event that the filter triggers on.
CheckBox
 Inheritedgrid : IExtendedDataGrid
The grid that the filter belongs to - can be null if filter is used outside the grid
CheckBox
 InheritedgridColumn : IDataGridFilterColumn
The grid column that the filter belongs to - can be null if filter is used outside the grid
CheckBox
  middle : Boolean
TriStateCheckBox
  radioButtonMode : Boolean
In single select datagrids, set this to true for the icon to appear as if it is a radio button
TriStateCheckBox
 InheritedrendererStyleName : String
CheckBox
 InheritedsearchField : String
The field to search on, usually same as the data field.
CheckBox
  selected : Boolean
[override]
TriStateCheckBox
  selectedState : String
TriStateCheckBox
Protected Properties
 PropertyDefined By
 Inherited_filterControlInterface : FilterControlImpl
CheckBox
Public Methods
 MethodDefined By
  
TriStateCheckBox(middle:Boolean = false)
Constructor
TriStateCheckBox
  
clear():void
[override]
TriStateCheckBox
  
dispatchEvent(event:Event):Boolean
[override]
TriStateCheckBox
  
getStyle(prop:String):*
[override] Support for radioButtonMode
TriStateCheckBox
  
getValue():Object
[override] Generic function that returns the value of a IFilterControl
TriStateCheckBox
 Inherited
CheckBox
  
setValue(val:Object):void
[override] Generic function that sets the value of a IFilterControl
TriStateCheckBox
Protected Methods
 MethodDefined By
  
clickHandler(event:MouseEvent):void
[override] Default click handler
TriStateCheckBox
 Inherited
[override]
CheckBox
  
keyUpHandler(event:KeyboardEvent):void
[override]
TriStateCheckBox
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
TriStateCheckBox
Styles
 Style Description Defined By
 InheritedType: int
Where to place the icon.
CheckBox
 InheritedType: int
Where to place the label.
CheckBox
  
middleIcon
Type: Class CSS Inheritance: no
Name of the class to use as the icon when a toggle button is not selected and the mouse is not over the button. The default value is null.
TriStateCheckBox
Public Constants
 ConstantDefined By
  STATE_CHECKED : String = checked
[static]
TriStateCheckBox
  STATE_MIDDLE : String = middle
[static]
TriStateCheckBox
  STATE_UNCHECKED : String = unchecked
[static]
TriStateCheckBox
Property Detail
allowUserToSelectMiddleproperty
allowUserToSelectMiddle:Boolean


Implementation
    public function get allowUserToSelectMiddle():Boolean
    public function set allowUserToSelectMiddle(value:Boolean):void
delayDurationproperty 
public var delayDuration:uint = 500

The amount of time (in milliseconds) to wait before dispatching the DELAY_CHANGE event.

The default value is 500.

enableDelayChangeproperty 
public var enableDelayChange:Boolean = true

middleproperty 
middle:Boolean


Implementation
    public function get middle():Boolean
    public function set middle(value:Boolean):void
radioButtonModeproperty 
radioButtonMode:Boolean

In single select datagrids, set this to true for the icon to appear as if it is a radio button


Implementation
    public function get radioButtonMode():Boolean
    public function set radioButtonMode(value:Boolean):void
selectedproperty 
selected:Boolean[override]


Implementation
    public function get selected():Boolean
    public function set selected(value:Boolean):void
selectedStateproperty 
selectedState:String


Implementation
    public function get selectedState():String
    public function set selectedState(value:String):void
Constructor Detail
TriStateCheckBox()Constructor
public function TriStateCheckBox(middle:Boolean = false)

Constructor

Parameters
middle:Boolean (default = false)
Method Detail
clear()method
override public function clear():void

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

Default click handler

Parameters

event:MouseEvent

dispatchEvent()method 
override public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
getStyle()method 
override public function getStyle(prop:String):*

Support for radioButtonMode

Parameters

prop:String

Returns
*
getValue()method 
override public function getValue():Object

Generic function that returns the value of a IFilterControl

Returns
Object
keyUpHandler()method 
override protected function keyUpHandler(event:KeyboardEvent):void

Parameters

event:KeyboardEvent

setValue()method 
override public function setValue(val:Object):void

Generic function that sets the value of a IFilterControl

Parameters

val:Object

updateDisplayList()method 
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters

unscaledWidth:Number
 
unscaledHeight:Number

Constant Detail
STATE_CHECKEDConstant
public static const STATE_CHECKED:String = checked

STATE_MIDDLEConstant 
public static const STATE_MIDDLE:String = middle

STATE_UNCHECKEDConstant 
public static const STATE_UNCHECKED:String = unchecked