Packagecom.flexicious.nestedtreedatagrid.utils
Classpublic class ExtendedUIUtils
InheritanceExtendedUIUtils Inheritance Object



Public Methods
 MethodDefined By
  
ExtendedUIUtils
  
filterArray(arrayIn:Object, filter:Filter, grid:IExtendedDataGrid, level:FlexDataGridColumnLevel, hideIfNoChildren:Boolean):Array
[static] Provided an array, filters it on basis of the filter arguments.
ExtendedUIUtils
  
filterArrayFlat(arrayIn:Object, filter:Filter):Array
[static]
ExtendedUIUtils
  
filterPageSort(flat:Array, filter:Filter, pages:Array = null, flatFilter:Boolean = false):Array
[static]
ExtendedUIUtils
  
getColorName(input:Object):uint
[static]
ExtendedUIUtils
  
getColorNames(input:Array):void
[static]
ExtendedUIUtils
  
getStyleManager():IStyleManager2
[static]
ExtendedUIUtils
  
gradientFill(comp:Sprite, colors:Array, paddingX:int = 0, paddingY:int = 0):void
[static] Creates a gradient fill
ExtendedUIUtils
  
isInUIHierarchy(child:DisplayObject, parent:DisplayObject):Boolean
[static] Returns true if parent exists somwhere in the parent hierarchy of the child.
ExtendedUIUtils
  
nanToZero(input:*):*
[static] eturns Zero if passed in input is NAN else returns input as is.
ExtendedUIUtils
  
pageArray(arrayIn:Object, pageIndex:int, pageSize:Number):Array
[static]
ExtendedUIUtils
  
pageArrayByPageNumbers(arrayIn:Object, pageIndexes:Array, pageSize:Number):Array
[static]
ExtendedUIUtils
  
resolveExpression(host:Object, expression:String, valueToApply:Object = null, returnUndefinedIfPropertyNotFound:Boolean = false, applyNullValues:Boolean = false):*
[static] A utility function that resolves expressions like x.y.z (for complex object dataField Support) Also used to apply values.
ExtendedUIUtils
  
sortArray(arrayIn:Object, sorts:ArrayCollection):ICollectionView
[static] Sorts the given array
ExtendedUIUtils
  
toString(host:Object):String
[static]
ExtendedUIUtils
Constructor Detail
ExtendedUIUtils()Constructor
public function ExtendedUIUtils()



Method Detail
filterArray()method
public static function filterArray(arrayIn:Object, filter:Filter, grid:IExtendedDataGrid, level:FlexDataGridColumnLevel, hideIfNoChildren:Boolean):Array

Provided an array, filters it on basis of the filter arguments. Returns a new array that only contains the values that match filters.

Parameters

arrayIn:Object
 
filter:Filter
 
grid:IExtendedDataGrid
 
level:FlexDataGridColumnLevel
 
hideIfNoChildren:Boolean

Returns
Array
filterArrayFlat()method 
public static function filterArrayFlat(arrayIn:Object, filter:Filter):Array

Parameters

arrayIn:Object
 
filter:Filter

Returns
Array
filterPageSort()method 
public static function filterPageSort(flat:Array, filter:Filter, pages:Array = null, flatFilter:Boolean = false):Array

Parameters

flat:Array
 
filter:Filter
 
pages:Array (default = null)
 
flatFilter:Boolean (default = false)

Returns
Array
getColorName()method 
public static function getColorName(input:Object):uint

Parameters

input:Object

Returns
uint
getColorNames()method 
public static function getColorNames(input:Array):void

Parameters

input:Array

getStyleManager()method 
public static function getStyleManager():IStyleManager2

Returns
IStyleManager2
gradientFill()method 
public static function gradientFill(comp:Sprite, colors:Array, paddingX:int = 0, paddingY:int = 0):void

Creates a gradient fill

Parameters

comp:Sprite
 
colors:Array
 
paddingX:int (default = 0)
 
paddingY:int (default = 0)

isInUIHierarchy()method 
public static function isInUIHierarchy(child:DisplayObject, parent:DisplayObject):Boolean

Returns true if parent exists somwhere in the parent hierarchy of the child.

Parameters

child:DisplayObject
 
parent:DisplayObject

Returns
Boolean
nanToZero()method 
public static function nanToZero(input:*):*

eturns Zero if passed in input is NAN else returns input as is.

Parameters

input:*

Returns
*
pageArray()method 
public static function pageArray(arrayIn:Object, pageIndex:int, pageSize:Number):Array

Parameters

arrayIn:Object
 
pageIndex:int
 
pageSize:Number

Returns
Array
pageArrayByPageNumbers()method 
public static function pageArrayByPageNumbers(arrayIn:Object, pageIndexes:Array, pageSize:Number):Array

Parameters

arrayIn:Object
 
pageIndexes:Array
 
pageSize:Number

Returns
Array
resolveExpression()method 
public static function resolveExpression(host:Object, expression:String, valueToApply:Object = null, returnUndefinedIfPropertyNotFound:Boolean = false, applyNullValues:Boolean = false):*

A utility function that resolves expressions like x.y.z (for complex object dataField Support) Also used to apply values. For example, if dataField=x.y.z, we can apply x.y.z=valueToApply.

Parameters

host:Object — The object
 
expression:String
 
valueToApply:Object (default = null)
 
returnUndefinedIfPropertyNotFound:Boolean (default = false)
 
applyNullValues:Boolean (default = false)

Returns
* — The result of the expression
sortArray()method 
public static function sortArray(arrayIn:Object, sorts:ArrayCollection):ICollectionView

Sorts the given array

Parameters

arrayIn:Object
 
sorts:ArrayCollection

Returns
ICollectionView
toString()method 
public static function toString(host:Object):String

Parameters

host:Object

Returns
String