Paquete | mx.events |
Clase | public final class ListEventReason |
Herencia | ListEventReason 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 |
reason
property of a
ListEvent object where the value of the type
property is
ListEvent.ITEM_EDIT_END
.
Constante | Definido por | ||
---|---|---|---|
CANCELLED : String = "cancelled" [estática]
Specifies that the user cancelled editing and that they do not
want to save the edited data. | ListEventReason | ||
NEW_ROW : String = "newRow" [estática]
Specifies that the user moved focus to a new row in the control. | ListEventReason | ||
OTHER : String = "other" [estática]
Specifies that the list control lost focus, was scrolled,
or is somehow in a state where editing is not allowed. | ListEventReason |
CANCELLED | Constante |
public static const CANCELLED:String = "cancelled"
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 |
Specifies that the user cancelled editing and that they do not
want to save the edited data. Even if you call the preventDefault()
method
from within your event listener for the itemEditEnd
event,
Flex still calls the destroyItemEditor()
method to close the editor.
NEW_ROW | Constante |
public static const NEW_ROW:String = "newRow"
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 |
Specifies that the user moved focus to a new row in the control.
Within an event listener, you can let the focus change occur, or prevent it.
For example, your event listener might check that the user entered a valid value
for the item currently being edited. If not, you can prevent the user from moving
to a new item by calling the preventDefault()
method.
In this case, the item editor remains open, and the user continues to edit
the current item. If you call the preventDefault()
method and
also call the destroyItemEditor()
method, you block the move to the new item,
but the item editor closes.
OTHER | Constante |
public static const OTHER:String = "other"
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 |
Specifies that the list control lost focus, was scrolled,
or is somehow in a state where editing is not allowed.
Even if you call the preventDefault()
method from within your event
listener for the itemEditEnd
event,
Flex still calls the destroyItemEditor()
method to close the editor.
Tue Jun 12 2018, 02:12 PM Z