Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
ComplexSortField

Package | spark.collections
Class | public class ComplexSortField
Inheritance | ComplexSortField SortField SortField flash.events.EventDispatcher
Implements | IComplexSortField

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| 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

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| 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

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| 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

Styles
Hide Inherited Styles
Show Inherited Styles

| Style | Description | Defined By
--- | --- | --- | ---
|  | locale | Type: String CSS Inheritance: yes The locale identifier that specifies the language, region, script and optionally other related tags and keys. See also http://www.unicode.org/reports/tr35/ | SortField

Property Detail

arraySortOnOptions | property

`arraySortOnOptions:int` [read-only] [override]

Implementation
`public function get arraySortOnOptions():int`

nameParts | property |

`nameParts:Array` [read-only]

Implementation
`public function get nameParts():Array`
Constructor Detail

ComplexSortField | () | Constructor

`public function ComplexSortField(name:String = null, descending:Boolean = false, numeric:Object = null, sortCompareType:String = null, customCompareFunction:Function = null)`

Parameters

| `name:String` (default = `null`)``
| `descending:Boolean` (default = `false`)``
| `numeric:Object` (default = `null`)``
| `sortCompareType:String` (default = `null`)``
| `customCompareFunction:Function` (default = `null`)``

Method Detail

getSortFieldValue | () | method

`override protected function getSortFieldValue(obj:Object):*`

Parameters

| `obj:Object`

Returns

| `*`

objectHasSortField | () | method |

`override public function objectHasSortField(object:Object):Boolean`

Parameters

| `object:Object`

Returns

| `Boolean`

Wed Nov 15 2017, 09:50 AM +01:00