Pacchetto | mx.events |
Classe | public class IndexChangedEvent |
Ereditarietà | IndexChangedEvent Event Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Elementi API correlati
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 | ||
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 | ||
newIndex : Number
The zero-based index after the change. | IndexChangedEvent | ||
oldIndex : Number
The zero-based index before the change. | IndexChangedEvent | ||
relatedObject : DisplayObject
The child object whose index changed, or the object associated with
the new index. | IndexChangedEvent | ||
target : Object [sola lettura]
Il target dell'evento. | Event | ||
triggerEvent : Event
The event that triggered this event. | IndexChangedEvent | ||
type : String [sola lettura]
Il tipo di evento. | Event |
Metodo | Definito da | ||
---|---|---|---|
IndexChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:DisplayObject = null, oldIndex:Number = -1, newIndex:Number = -1, triggerEvent:Event = null)
Constructor. | IndexChangedEvent | ||
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 | ||
---|---|---|---|
CHANGE : String = "change" [statico]
The IndexChangedEvent.CHANGE constant defines the value of the
type property of the event object for a change event,
which indicates that an index has changed, such as when and Accordion control
changes the displayed panel or a ViewStack changes views. | IndexChangedEvent | ||
CHILD_INDEX_CHANGE : String = "childIndexChange" [statico]
The IndexChangedEvent.CHILD_INDEX_CHANGE constant defines the value of the
type property of the event object for a childIndexChange event,
which indicates that a component's index among a container's children
has changed. | IndexChangedEvent | ||
HEADER_SHIFT : String = "headerShift" [statico]
The IndexChangedEvent.HEADER_SHIFT constant defines the value of the
type property of the event object for a headerShift event,
which indicates that a header has changed its index, as when a user drags
a DataGrid column to a new position. | IndexChangedEvent |
newIndex | proprietà |
public var newIndex:Number
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The zero-based index after the change. For change
events
it is the index of the current child. For childIndexChange
events, it is the new index of the child. For headerShift
events, it is the new index of the header.
oldIndex | proprietà |
public var oldIndex:Number
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The zero-based index before the change.
For change
events it is the index of the previous child.
For childIndexChange
events, it is the previous index
of the child.
For headerShift
events, it is the previous index of
the header.
relatedObject | proprietà |
public var relatedObject:DisplayObject
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The child object whose index changed, or the object associated with the new index. This property is not set for header changes.
triggerEvent | proprietà |
public var triggerEvent:Event
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The event that triggered this event.
Indicates whether this event was caused by a mouse or keyboard interaction.
The value is null
when a container dispatches a
childIndexChanged
event.
IndexChangedEvent | () | Funzione di costruzione |
public function IndexChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:DisplayObject = null, oldIndex:Number = -1, newIndex:Number = -1, triggerEvent:Event = null)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructor. Normally called by a Flex control and not used in application code.
Parametritype:String — The event type; indicates the action that caused the event.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble
up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior
associated with the event can be prevented.
| |
relatedObject:DisplayObject (default = null ) — The child object associated with the index change.
| |
oldIndex:Number (default = -1 ) — The zero-based index before the change.
| |
newIndex:Number (default = -1 ) — The zero-based index after the change.
| |
triggerEvent:Event (default = null ) — The event that triggered this event.
|
CHANGE | Costante |
public static const CHANGE:String = "change"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The IndexChangedEvent.CHANGE constant defines the value of the
type
property of the event object for a change
event,
which indicates that an index has changed, such as when and Accordion control
changes the displayed panel or a ViewStack changes views.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
inputType | Indicates whether this event was caused by a mouse or keyboard interaction. |
newIndex | The zero-based index after the change. |
oldIndex | The zero-based index before the change. |
relatedObject | Contains a reference to the child object that corresponds to the new index. |
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. |
TriggerEvent | The event that triggered this event. |
Type | IndexChangedEvent.CHANGE |
CHILD_INDEX_CHANGE | Costante |
public static const CHILD_INDEX_CHANGE:String = "childIndexChange"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The IndexChangedEvent.CHILD_INDEX_CHANGE constant defines the value of the
type
property of the event object for a childIndexChange event,
which indicates that a component's index among a container's children
has changed.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
inputType | Indicates whether this event was caused by a mouse or keyboard interaction. |
newIndex | The zero-based index of the child after the change. |
oldIndex | The zero-based index of the child before the change. |
relatedObject | Contains a reference to the child object whose index changed. |
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. |
TriggerEvent | null |
Type | IndexChangedEvent.CHILD_INDEX_CHANGE |
HEADER_SHIFT | Costante |
public static const HEADER_SHIFT:String = "headerShift"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
The IndexChangedEvent.HEADER_SHIFT constant defines the value of the
type
property of the event object for a headerShift
event,
which indicates that a header has changed its index, as when a user drags
a DataGrid column to a new position.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
inputType | Indicates whether this event was caused by a mouse or keyboard interaction. |
newIndex | The zero-based index of the header after the change. |
oldIndex | The zero-based index of the header before the change. |
relatedObject | null |
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. |
TriggerEvent | The event that triggered this event. |
Type | IndexChangedEvent.HEADER_SHIFT |
Tue Jun 12 2018, 02:44 PM Z