Packagespark.components.gridClasses
Classpublic class GridSortFieldSimple
InheritanceGridSortFieldSimple Inheritance SortField Inheritance SortField Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritedarraySortOnOptions : int
[read-only] This helper property is used internally by the findItem() and sort() methods.
SortField
 InheritedcaseInsensitive : Boolean
[read-only] Specifies whether the sort for this field should be case insensitive.
SortField
 InheritedclassName : String
[read-only]
SortField
  column : GridColumn
[read-only]
GridSortFieldSimple
 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
 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
  
GridSortFieldSimple(column:GridColumn, name:String = null, descending:Boolean = false, numeric:Object = null, sortCompareType:String = null, customCompareFunction:Function = null)
GridSortFieldSimple
 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
 Inherited
objectHasSortField(object:Object):Boolean
SortField
 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]
GridSortFieldSimple
 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
columnproperty
column:GridColumn  [read-only]


Implementation
    public function get column():GridColumn
Constructor Detail
GridSortFieldSimple()Constructor
public function GridSortFieldSimple(column:GridColumn, name:String = null, descending:Boolean = false, numeric:Object = null, sortCompareType:String = null, customCompareFunction:Function = null)



Parameters
column:GridColumn
 
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
*