| Package | com.iwobanas.controls.dataGridClasses.filters |
| Class | public class MultipleChoiceFilter |
| Inheritance | MultipleChoiceFilter ColumnFilterBase flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
![]() | column : MDataGridColumn
MDataGrid column related to this filter.
| ColumnFilterBase | |
| isActive : Boolean [read-only]
Flag indicating wether this filter is active
i.e may eliminate some items from MDataGrid data provider.
| MultipleChoiceFilter | ||
| labels : ArrayCollection
List of all different labels appearing in column related to this filter.
| MultipleChoiceFilter | ||
| selectedLabels : ArrayCollection
List of selected labels.
| MultipleChoiceFilter | ||
| Method | Defined by | ||
|---|---|---|---|
|
MultipleChoiceFilter(column:MDataGridColumn)
Constructor.
| MultipleChoiceFilter | ||
|
deselectAll():void
Deselect all labels.
| MultipleChoiceFilter | ||
|
deselectLabel(label:String):void
Deselect given label by adding it to
selectedLabels list. | MultipleChoiceFilter | ||
|
filterFunction(obj:Object):Boolean
Test if given MDataGrid item should remain in MDataGrid data provider.
| MultipleChoiceFilter | ||
|
selectAll():void
Select all labels.
| MultipleChoiceFilter | ||
|
selectLabel(label:String):void
Select given label by adding it to
selectedLabels list. | MultipleChoiceFilter | ||
| Method | Defined by | ||
|---|---|---|---|
|
commitFilterChange():void
Update
isActive and then inform MDataGrid about the change to this filter. | MultipleChoiceFilter | ||
|
originalCollectionChandeHandler(event:Event):void
MDataGrid original collection change event handler.
| MultipleChoiceFilter | ||
|
updateLabels():void
Update labels list by iterating through MDataGrid original collection.
| MultipleChoiceFilter | ||
| isActive | property |
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
| labels | property |
public var labels:ArrayCollectionList of all different labels appearing in column related to this filter.
This property can be used as the source for data binding.
| selectedLabels | property |
public var selectedLabels:ArrayCollectionList of selected labels. Only items with labels from this list will be included in MDataGrid data provider.
This property can be used as the source for data binding.
| MultipleChoiceFilter | () | constructor |
public function MultipleChoiceFilter(column:MDataGridColumn)Constructor.
Parameterscolumn:MDataGridColumn |
| commitFilterChange | () | method |
protected override function commitFilterChange():void
Update isActive and then inform MDataGrid about the change to this filter.
| deselectAll | () | method |
public function deselectAll():voidDeselect all labels.
| deselectLabel | () | method |
public function deselectLabel(label:String):void
Deselect given label by adding it to selectedLabels list.
label:String |
| filterFunction | () | method |
public override function filterFunction(obj:Object):BooleanTest if given MDataGrid item should remain in MDataGrid data provider.
Parametersobj:Object |
Boolean |
| originalCollectionChandeHandler | () | method |
protected function originalCollectionChandeHandler(event:Event):voidMDataGrid original collection change event handler.
Parametersevent:Event |
| selectAll | () | method |
public function selectAll():voidSelect all labels.
| selectLabel | () | method |
public function selectLabel(label:String):void
Select given label by adding it to selectedLabels list.
label:String |
| updateLabels | () | method |
protected function updateLabels():voidUpdate labels list by iterating through MDataGrid original collection.