mx.events

# ListEventReason - AS3 Flex

Package | mx.events
Class | public final class ListEventReason
Inheritance | ListEventReason Object

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Constants for the values of the `reason` property of a ListEvent object where the value of the `type` property is `ListEvent.ITEM_EDIT_END`.

More examples

Manually dispatching events

Learn more

About Flex events

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CANCELLED : String = "cancelled" [static] Specifies that the user cancelled editing and that they do not want to save the edited data. | ListEventReason
|  | NEW_ROW : String = "newRow" [static] Specifies that the user moved focus to a new row in the control. | ListEventReason
|  | OTHER : String = "other" [static] Specifies that the list control lost focus, was scrolled, or is somehow in a state where editing is not allowed. | ListEventReason

Constant Detail

### CANCELLED

Constant

`public static const CANCELLED:String = "cancelled"`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | 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

Constant

`public static const NEW_ROW:String = "newRow"`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | 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

Constant

`public static const OTHER:String = "other"`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00