| Package | com.flexicious.nestedtreedatagrid.utils |
| Class | public class ExtendedUIUtils |
| Inheritance | ExtendedUIUtils Object |
| Method | Defined 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 | ||
| ExtendedUIUtils | () | Constructor |
public function ExtendedUIUtils()| filterArray | () | method |
public static function filterArray(arrayIn:Object, filter:Filter, grid:IExtendedDataGrid, level:FlexDataGridColumnLevel, hideIfNoChildren:Boolean):ArrayProvided 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 |
Array |
| filterArrayFlat | () | method |
public static function filterArrayFlat(arrayIn:Object, filter:Filter):ArrayParameters
arrayIn:Object | |
filter:Filter |
Array |
| filterPageSort | () | method |
public static function filterPageSort(flat:Array, filter:Filter, pages:Array = null, flatFilter:Boolean = false):ArrayParameters
flat:Array | |
filter:Filter | |
pages:Array (default = null) | |
flatFilter:Boolean (default = false) |
Array |
| getColorName | () | method |
public static function getColorName(input:Object):uintParameters
input:Object |
uint |
| getColorNames | () | method |
public static function getColorNames(input:Array):voidParameters
input:Array |
| getStyleManager | () | method |
public static function getStyleManager():IStyleManager2ReturnsIStyleManager2 |
| gradientFill | () | method |
public static function gradientFill(comp:Sprite, colors:Array, paddingX:int = 0, paddingY:int = 0):voidCreates 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):BooleanReturns true if parent exists somwhere in the parent hierarchy of the child.
Parameters
child:DisplayObject | |
parent:DisplayObject |
Boolean |
| nanToZero | () | method |
public static function nanToZero(input:*):*eturns Zero if passed in input is NAN else returns input as is.
Parameters
input:* |
* |
| pageArray | () | method |
public static function pageArray(arrayIn:Object, pageIndex:int, pageSize:Number):ArrayParameters
arrayIn:Object | |
pageIndex:int | |
pageSize:Number |
Array |
| pageArrayByPageNumbers | () | method |
public static function pageArrayByPageNumbers(arrayIn:Object, pageIndexes:Array, pageSize:Number):ArrayParameters
arrayIn:Object | |
pageIndexes:Array | |
pageSize:Number |
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) |
* — The result of the expression
|
| sortArray | () | method |
public static function sortArray(arrayIn:Object, sorts:ArrayCollection):ICollectionViewSorts the given array
Parameters
arrayIn:Object | |
sorts:ArrayCollection |
ICollectionView |
| toString | () | method |
public static function toString(host:Object):StringParameters
host:Object |
String |