Package | spark.collections |
Class | public class ComplexSortField |
Inheritance | ComplexSortField ![]() ![]() ![]() |
Implements | IComplexSortField |
Property | Defined By | ||
---|---|---|---|
arraySortOnOptions : int [override] [read-only] | ComplexSortField | ||
![]() | caseInsensitive : Boolean [read-only]
Specifies whether the sort for this field should be case insensitive. | SortField | |
![]() | className : String [read-only] | SortField | |
![]() | compareFunction : Function [override]
The function that compares two items during a sort of items for the
associated collection. | SortField | |
![]() | descending : Boolean
Specifies whether this field should be sorted in descending
order. | SortField | |
![]() | id : String | SortField | |
![]() | inheritingStyles : Object | SortField | |
![]() | moduleFactory : IFlexModuleFactory | SortField | |
![]() | name : String
The name of the field to be sorted. | SortField | |
nameParts : Array [read-only] | ComplexSortField | ||
![]() | nonInheritingStyles : Object | SortField | |
![]() | numeric : Object
Specifies that if the field being sorted contains numeric
(number/int/uint) values, or string representations of numeric values,
the comparator use a numeric comparison. | SortField | |
![]() | sortCompareType : String
Specifies what compare type will be used for the sortField. | SortField | |
![]() | styleDeclaration : CSSStyleDeclaration | SortField | |
![]() | styleManager : IStyleManager2 [read-only] | SortField | |
![]() | styleName : Object | SortField | |
![]() | styleParent : IAdvancedStyleClient | SortField | |
![]() | usingCustomCompareFunction : Boolean [read-only]
True if this ISortField uses a custom comparator function. | SortField |
Method | Defined By | ||
---|---|---|---|
ComplexSortField(name:String = null, descending:Boolean = false, numeric:Object = null, sortCompareType:String = null, customCompareFunction:Function = null) | ComplexSortField | ||
![]() | clearStyle(styleProp:String):void | SortField | |
![]() | getClassStyleDeclarations():Array | SortField | |
![]() | getStyle(styleProp:String):* | SortField | |
![]() | hasCSSState():Boolean | SortField | |
![]() | initialized(document:Object, id:String):void | SortField | |
![]() | initializeDefaultCompareFunction(obj:Object):void
A helper function called by the Sort class to set the
default comparison function to perform a comparison based on
one of three things: whether or not a custom compare function has
been set, the data type for the specified field or the the value of the
numeric property. | SortField | |
![]() | matchesCSSState(cssState:String):Boolean | SortField | |
![]() | matchesCSSType(cssType:String):Boolean | SortField | |
![]() | notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void | SortField | |
objectHasSortField(object:Object):Boolean [override] | ComplexSortField | ||
![]() | regenerateStyleCache(recursive:Boolean):void | SortField | |
![]() | registerEffects(effects:Array):void | SortField | |
![]() | reverse():void
Reverse the criteria for this sort field. | SortField | |
![]() | setStyle(styleProp:String, newValue:*):void | SortField | |
![]() | styleChanged(styleProp:String):void | SortField | |
![]() | stylesInitialized():void | SortField | |
![]() | updateSortCompareType():Boolean
This changes the internal compare function used by the SortField based
on the value of sortCompareType. | SortField |
Method | Defined By | ||
---|---|---|---|
getSortFieldValue(obj:Object):* [override] | ComplexSortField | ||
![]() | stringCompare(a:Object, b:Object):int [override]
Pull the strings from the objects and call the implementation. | SortField | |
![]() | xmlCompare(a:Object, b:Object):int [override]
Pull the values out fo the XML object, then compare
using the string or numeric comparator depending
on the numeric flag. | SortField |
arraySortOnOptions | property |
arraySortOnOptions:int
[read-only] [override] public function get arraySortOnOptions():int
nameParts | property |
nameParts:Array
[read-only] public function get nameParts():Array
ComplexSortField | () | Constructor |
public function ComplexSortField(name:String = null, descending:Boolean = false, numeric:Object = null, sortCompareType:String = null, customCompareFunction:Function = null)
name:String (default = null )
| |
descending:Boolean (default = false )
| |
numeric:Object (default = null )
| |
sortCompareType:String (default = null )
| |
customCompareFunction:Function (default = null )
|
getSortFieldValue | () | method |
override protected function getSortFieldValue(obj:Object):*
Parameters
obj:Object |
* |
objectHasSortField | () | method |
override public function objectHasSortField(object:Object):Boolean
Parameters
object:Object |
Boolean |