Packagecom.iwobanas.controls.dataGridClasses.filters
Classpublic class NumberRangeFilter
InheritanceNumberRangeFilter Inheritance ColumnFilterBase Inheritance flash.events.EventDispatcher

The NumberRangeFilter class defines MDataGrid column filter which filters numerical values based on specified minimum and maximum values. This filter also provides information about range of the values found in MDataGrid data provider.



Public Properties
 PropertyDefined by
 Inheritedcolumn : MDataGridColumn
MDataGrid column related to this filter.
ColumnFilterBase
  dataMaximum : Number
Maximum value found in MDataGrid column related to this filter
NumberRangeFilter
  dataMinimum : Number
Minimum value found in MDataGrid column related to this filter.
NumberRangeFilter
  isActive : Boolean
[read-only] Flag indicating wether this filter is active i.e may eliminate some items from MDataGrid data provider.
NumberRangeFilter
  maximum : Number
Maximum value allowed in MDataGrid column related to this filter.
NumberRangeFilter
  minimum : Number
Minimum value allowed in MDataGrid column related to this filter.
NumberRangeFilter
Protected Properties
 PropertyDefined by
 InheriteddataGrid : MDataGrid
MDataGrid related to this filter.
ColumnFilterBase
Public Methods
 MethodDefined by
  
Constructor.
NumberRangeFilter
  
filterFunction(obj:Object):Boolean
Test if given MDataGrid item should remain in MDataGrid data provider.
NumberRangeFilter
Protected Methods
 MethodDefined by
 Inherited
Inform MDataGrid about the change to this filter.
ColumnFilterBase
  
itemToNumber(item:Object):Number
Return numeric value for the given item.
NumberRangeFilter
  
Update dataMinimum and dataMaximum values.
NumberRangeFilter
Events
 EventSummaryDefined by
 Inherited Dispatched when the state of the filter changes.ColumnFilterBase
Property detail
dataMaximumproperty
public var dataMaximum:Number

Maximum value found in MDataGrid column related to this filter

This property can be used as the source for data binding.

dataMinimumproperty 
public var dataMinimum:Number

Minimum value found in MDataGrid column related to this filter.

This property can be used as the source for data binding.

isActiveproperty 
isActive:Boolean  [read-only]

Flag indicating wether this filter is active i.e may eliminate some items from MDataGrid data provider.

Implementation
    public function get isActive():Boolean
maximumproperty 
maximum:Number  [read-write]

Maximum value allowed in MDataGrid column related to this filter. Items with value greater than minimum will be eliminated.

This property can be used as the source for data binding.

Implementation
    public function get maximum():Number
    public function set maximum(value:Number):void
minimumproperty 
minimum:Number  [read-write]

Minimum value allowed in MDataGrid column related to this filter. Items with value less than minimum will be eliminated.

This property can be used as the source for data binding.

Implementation
    public function get minimum():Number
    public function set minimum(value:Number):void
Constructor detail
NumberRangeFilter()constructor
public function NumberRangeFilter(column:MDataGridColumn)

Constructor.

Parameters
column:MDataGridColumn
Method detail
filterFunction()method
public override function filterFunction(obj:Object):Boolean

Test if given MDataGrid item should remain in MDataGrid data provider.

Parameters
obj:Object

Returns
Boolean
itemToNumber()method 
protected function itemToNumber(item:Object):Number

Return numeric value for the given item.

Parameters
item:Object — MDataGrid item.

Returns
Number — numeric value for the given item.
updateOriginalDataRange()method 
protected function updateOriginalDataRange():void

Update dataMinimum and dataMaximum values.