Paquete | mx.events |
Clase | public class IndexChangedEvent |
Herencia | IndexChangedEvent Event Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Elementos de API relacionados
Propiedad | Definido por | ||
---|---|---|---|
bubbles : Boolean [solo lectura]
Indica si un evento es un evento de propagación. | Event | ||
cancelable : Boolean [solo lectura]
Indica si se puede evitar el comportamiento asociado al evento. | Event | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
currentTarget : Object [solo lectura]
Objeto que procesa de forma activa el objeto de evento con un detector de eventos. | Event | ||
eventPhase : uint [solo lectura]
La fase actual en el flujo del evento. | 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 [solo lectura]
El destino del evento. | Event | ||
triggerEvent : Event
The event that triggered this event. | IndexChangedEvent | ||
type : String [solo lectura]
El tipo de evento. | Event |
Método | Definido por | ||
---|---|---|---|
IndexChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:DisplayObject = null, oldIndex:Number = -1, newIndex:Number = -1, triggerEvent:Event = null)
Constructor. | IndexChangedEvent | ||
Duplica una instancia de la subclase Event. | Event | ||
Una función de utilidad para implementar el método toString() en las clases Event personalizadas de ActionScript 3.0. | Event | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Comprueba si se ha llamado a preventDefault() en el evento. | Event | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Cancela el comportamiento predeterminado de un evento si es posible cancelarlo. | Event | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Impide el proceso de cualquier detector de eventos en el nodo actual y los nodos siguientes en el flujo del evento. | Event | ||
Impide el proceso de cualquier detector de eventos en nodos siguientes al nodo actual. | Event | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve una cadena que contiene todas las propiedades del objeto de evento. | Event | ||
Devuelve el valor simple del objeto especificado. | Object |
Constante | Definido por | ||
---|---|---|---|
CHANGE : String = "change" [estática]
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" [estática]
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" [estática]
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 | propiedad |
public var newIndex:Number
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | propiedad |
public var oldIndex:Number
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | propiedad |
public var relatedObject:DisplayObject
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | propiedad |
public var triggerEvent:Event
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | () | Información sobre |
public function IndexChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, relatedObject:DisplayObject = null, oldIndex:Number = -1, newIndex:Number = -1, triggerEvent:Event = null)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constructor. Normally called by a Flex control and not used in application code.
Parámetrostype: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 | Constante |
public static const CHANGE:String = "change"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | Constante |
public static const CHILD_INDEX_CHANGE:String = "childIndexChange"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | Constante |
public static const HEADER_SHIFT:String = "headerShift"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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:12 PM Z