Pacchetto | spark.events |
Classe | public class GridSortEvent |
Ereditarietà | GridSortEvent Event Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
Elementi API correlati
spark.components.gridClasses.GridColumn
spark.components.GridColumnHeaderGroup
Proprietà | Definito da | ||
---|---|---|---|
bubbles : Boolean [sola lettura]
Indica se un evento è un evento di bubbling. | Event | ||
cancelable : Boolean [sola lettura]
Indica se il comportamento associato all'evento può essere impedito. | Event | ||
columnIndices : Vector.<int>
The vector of column indices of the sorted columns. | GridSortEvent | ||
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
currentTarget : Object [sola lettura]
L'oggetto che elabora attivamente l'oggetto Event con un listener di eventi. | Event | ||
eventPhase : uint [sola lettura]
La fase attuale del flusso di eventi. | Event | ||
newSortFields : Array
The array of ISortFields for this sort. | GridSortEvent | ||
oldSortFields : Array [sola lettura]
The array of ISortFields for the last sort. | GridSortEvent | ||
target : Object [sola lettura]
Il target dell'evento. | Event | ||
type : String [sola lettura]
Il tipo di evento. | Event |
Metodo | Definito da | ||
---|---|---|---|
GridSortEvent(type:String, bubbles:Boolean, cancelable:Boolean, columnIndices:Vector.<int>, oldSortFields:Array, newSortFields:Array)
Constructor. | GridSortEvent | ||
Duplica un'istanza di una sottoclasse Event. | Event | ||
Una funzione dell'utilità per l'implementazione del metodo toString() in classi Event ActionScript 3.0 personalizzate. | Event | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Verifica se sull'evento è stato chiamato il metodo preventDefault(). | Event | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Annulla il comportamento predefinito di un evento se tale comportamento può essere annullato. | Event | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Impedisce l'elaborazione di tutti i listener di eventi nel nodo corrente e in tutti i nodi successivi del flusso di eventi. | Event | ||
Impedisce l'elaborazione di tutti i listener di eventi nei nodi del flusso di eventi successivi a quello corrente. | Event | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce una stringa che contiene tutte le proprietà dell'oggetto Event. | Event | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
Costante | Definito da | ||
---|---|---|---|
SORT_CHANGE : String = "sortChange" [statico]
The GridSortEvent.SORT_CHANGE constant defines
the value of the type property of the event object for a
sortChange event, which indicates that a sort filter has just been
applied to the grid's dataProvider collection. | GridSortEvent | ||
SORT_CHANGING : String = "sortChanging" [statico]
The GridSortEvent.SORT_CHANGING constant defines
the value of the type property of the event object for a
sortChanging event, which indicates that a sort filter is about to be
applied to the grid's dataProvider collection. | GridSortEvent |
columnIndices | proprietà |
public var columnIndices:Vector.<int>
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
The vector of column indices of the sorted columns.
If type
is GridSelectionEvent.SORT_CHANGING
this value
can be modified and it will be used to update the grid's columnHeaderGroup
visibleSortIndicatorIndices
.
Elementi API correlati
newSortFields | proprietà |
public var newSortFields:Array
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
The array of ISortFields for this sort.
If type
is GridSelectionEvent.SORT_CHANGING
this value
can be modified and it will be used to sort the dataProvider
of the grid.
Elementi API correlati
oldSortFields | proprietà |
oldSortFields:Array
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
The array of ISortFields for the last sort. This can be null
.
The elements in this Array should not be modified.
Implementazione
public function get oldSortFields():Array
Elementi API correlati
GridSortEvent | () | Funzione di costruzione |
public function GridSortEvent(type:String, bubbles:Boolean, cancelable:Boolean, columnIndices:Vector.<int>, oldSortFields:Array, newSortFields:Array)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
Constructor.
Parametritype:String — The event type; indicates the action that caused the event.
| |
bubbles:Boolean — Specifies whether the event can bubble
up the display list hierarchy.
| |
cancelable:Boolean — Specifies whether the behavior
associated with the event can be prevented.
| |
columnIndices:Vector.<int> — The vector of column indices of the sorted columns.
| |
oldSortFields:Array — The array of ISortFields for the last sort.
| |
newSortFields:Array — The array of ISortFields for this sort.
|
SORT_CHANGE | Costante |
public static const SORT_CHANGE:String = "sortChange"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
The GridSortEvent.SORT_CHANGE
constant defines
the value of the type
property of the event object for a
sortChange
event, which indicates that a sort filter has just been
applied to the grid's dataProvider
collection.
Typically, if a column header mouse click triggered the sort, then the last index of
columnIndices
is the column's index.
Note that interactive sorts are not necessarily triggered by a mouse click.
This event is dispatched when the user interacts with the control.
When you sort the data provider's collection programmatically,
the component does not dispatch the sortChange
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
columnIndices | The vector of column indices of the sorted columns. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myDataGrid.addEventListener() to register an event listener,
myDataGrid is the value of the currentTarget . |
newSortFields | The array of ISortFields for this sort. |
oldSortFields | The array of ISortFields for the last sort. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
type | GridSelectionEvent.SORT_CHANGE |
Elementi API correlati
SORT_CHANGING | Costante |
public static const SORT_CHANGING:String = "sortChanging"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4.5 |
Versioni runtime: | Flash Player 10, AIR 2.5 |
The GridSortEvent.SORT_CHANGING
constant defines
the value of the type
property of the event object for a
sortChanging
event, which indicates that a sort filter is about to be
applied to the grid's dataProvider
collection.
Call preventDefault() on this event to prevent the sort from occurring
or you modify columnIndices
and newSortFields
if you want to
change the default behavior of the sort.
Typically, if a column header mouse click triggered the sort, then the last index of
columnIndices
is the column's index.
Note that interactive sorts are not necessarily triggered by a mouse click.
This event is dispatched when the user interacts with the control.
When you sort the data provider's collection programmatically,
the component does not dispatch the sortChanging
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
columnIndices | The vector of column indices of the columns to be sorted. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myDataGrid.addEventListener() to register an event listener,
myDataGrid is the value of the currentTarget . |
newSortFields | The array of ISortFields for this sort. |
oldSortFields | The array of ISortFields for the last sort. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
type | GridSelectionEvent.SORT_CHANGING |
Elementi API correlati
Tue Jun 12 2018, 02:44 PM Z