Packagespark.collections
Classpublic class ComplexSortField
InheritanceComplexSortField Inheritance SortField Inheritance SortField Inheritance flash.events.EventDispatcher
Implements IComplexSortField



Public Properties
 PropertyDefined By
  arraySortOnOptions : int
[override] [read-only]
ComplexSortField
 InheritedcaseInsensitive : Boolean
[read-only] Specifies whether the sort for this field should be case insensitive.
SortField
 InheritedclassName : String
[read-only]
SortField
 InheritedcompareFunction : Function
[override] The function that compares two items during a sort of items for the associated collection.
SortField
 Inheriteddescending : Boolean
Specifies whether this field should be sorted in descending order.
SortField
 Inheritedid : String
SortField
 InheritedinheritingStyles : Object
SortField
 InheritedmoduleFactory : IFlexModuleFactory
SortField
 Inheritedname : String
The name of the field to be sorted.
SortField
  nameParts : Array
[read-only]
ComplexSortField
 InheritednonInheritingStyles : Object
SortField
 Inheritednumeric : 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
 InheritedsortCompareType : String
Specifies what compare type will be used for the sortField.
SortField
 InheritedstyleDeclaration : CSSStyleDeclaration
SortField
 InheritedstyleManager : IStyleManager2
[read-only]
SortField
 InheritedstyleName : Object
SortField
 InheritedstyleParent : IAdvancedStyleClient
SortField
 InheritedusingCustomCompareFunction : Boolean
[read-only] True if this ISortField uses a custom comparator function.
SortField
Public Methods
 MethodDefined By
  
ComplexSortField(name:String = null, descending:Boolean = false, numeric:Object = null, sortCompareType:String = null, customCompareFunction:Function = null)
ComplexSortField
 Inherited
clearStyle(styleProp:String):void
SortField
 Inherited
SortField
 Inherited
getStyle(styleProp:String):*
SortField
 Inherited
hasCSSState():Boolean
SortField
 Inherited
initialized(document:Object, id:String):void
SortField
 Inherited
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
 Inherited
matchesCSSState(cssState:String):Boolean
SortField
 Inherited
matchesCSSType(cssType:String):Boolean
SortField
 Inherited
notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void
SortField
  
objectHasSortField(object:Object):Boolean
[override]
ComplexSortField
 Inherited
regenerateStyleCache(recursive:Boolean):void
SortField
 Inherited
registerEffects(effects:Array):void
SortField
 Inherited
reverse():void
Reverse the criteria for this sort field.
SortField
 Inherited
setStyle(styleProp:String, newValue:*):void
SortField
 Inherited
styleChanged(styleProp:String):void
SortField
 Inherited
SortField
 Inherited
This changes the internal compare function used by the SortField based on the value of sortCompareType.
SortField
Protected Methods
 MethodDefined By
  
getSortFieldValue(obj:Object):*
[override]
ComplexSortField
 Inherited
stringCompare(a:Object, b:Object):int
[override] Pull the strings from the objects and call the implementation.
SortField
 Inherited
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
 Style Description Defined By
 InheritedType: String CSS Inheritance: yes
The locale identifier that specifies the language, region, script and optionally other related tags and keys.

See also

SortField
Property Detail
arraySortOnOptionsproperty
arraySortOnOptions:int  [read-only] [override]


Implementation
    public function get arraySortOnOptions():int
namePartsproperty 
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