Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
SortFieldCompareTypes

Package | mx.collections
Class | public final class SortFieldCompareTypes
Inheritance | SortFieldCompareTypes Object

Language Version : | ActionScript 3.0

Product Version : | Flex 4.11

Runtime Versions : | Flash Player 11.8, AIR 3.8

The SortFieldCompareTypes class defines the valid constant values for the `sortCompareType` property of the `SortField` and `GridColumn`.

Designed to be used from a DataGrids column, but can be referenced directly on the `SortField`

Use the constants in ActionsScript, as the following example shows:

           column.sortCompareType = SortFieldCompareTypes.NUMERIC;

In MXML, use the String value of the constants, as the following example shows:

           <s:GridColumn sortCompareType="numeric" />

Public Methods

| Method | Defined By
--- | --- | ---
|  | SortFieldCompareTypes() Constructor. | SortFieldCompareTypes

Public Constants

| Constant | Defined By
--- | --- | ---
|  | DATE : String = date [static] Represents the dateCompare inside a SortField. | SortFieldCompareTypes
|  | NULL : String = null [static] Represents the nullCompare inside a SortField. | SortFieldCompareTypes
|  | NUMERIC : String = numeric [static] Represents the numericCompare inside a SortField. | SortFieldCompareTypes
|  | STRING : String = string [static] Represents the stringCompare inside a SortField. | SortFieldCompareTypes
|  | XML : String = xml [static] Represents the xmlCompare inside a SortField. | SortFieldCompareTypes

Constructor Detail

SortFieldCompareTypes | () | Constructor

`public function SortFieldCompareTypes()`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.10

Runtime Versions : | Flash Player 11.1, AIR 3.4

Constructor.

Constant Detail

DATE | Constant

`public static const DATE:String = date`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.11

Runtime Versions : | Flash Player 11.8, AIR 3.8

Represents the dateCompare inside a SortField.

NULL | Constant |

`public static const NULL:String = null`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.11

Runtime Versions : | Flash Player 11.8, AIR 3.8

Represents the nullCompare inside a SortField.

NUMERIC | Constant |

`public static const NUMERIC:String = numeric`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.11

Runtime Versions : | Flash Player 11.8, AIR 3.8

Represents the numericCompare inside a SortField. This also is used for boolean comparisons.

STRING | Constant |

`public static const STRING:String = string`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.11

Runtime Versions : | Flash Player 11.8, AIR 3.8

Represents the stringCompare inside a SortField.

XML | Constant |

`public static const XML:String = xml`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.11

Runtime Versions : | Flash Player 11.8, AIR 3.8

Represents the xmlCompare inside a SortField.

Sun Mar 5 2017, 03:42 PM +11:00