Packagecom.iwobanas.controls.dataGridClasses.filters
Classpublic class WildcardFilter
InheritanceWildcardFilter Inheritance ColumnFilterBase Inheritance flash.events.EventDispatcher

The WildcardFilter class defines MDataGrid column filter using text wildcard to filter items. This filter matches item labels to a given wildcard and if they don't match eliminate items from data provider. If wildcard is not set or is empty string filter is regarded inactive.



Public Properties
 PropertyDefined by
 Inheritedcolumn : 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.
WildcardFilter
  regExp : RegExp
Current wildcard converted to regular expression.
WildcardFilter
  wildcard : String
Wildcard to be matched against item labels.
WildcardFilter
Protected Properties
 PropertyDefined by
 InheriteddataGrid : MDataGrid
MDataGrid related to this filter.
ColumnFilterBase
Public Methods
 MethodDefined by
  
Constructor.
WildcardFilter
  
filterFunction(obj:Object):Boolean
Test if given MDataGrid item should remain in MDataGrid data provider.
WildcardFilter
Protected Methods
 MethodDefined by
 Inherited
Inform MDataGrid about the change to this filter.
ColumnFilterBase
Events
 EventSummaryDefined by
 Inherited Dispatched when the state of the filter changes.ColumnFilterBase
Property detail
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
regExpproperty 
public var regExp:RegExp

Current wildcard converted to regular expression.

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

wildcardproperty 
wildcard:String  [read-write]

Wildcard to be matched against item labels. " is interpreted as any character sequence. "?" is interpreted as any single character. This wildcard is case insensitive.

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

Implementation
    public function get wildcard():String
    public function set wildcard(value:String):void
Constructor detail
WildcardFilter()constructor
public function WildcardFilter(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