Packagemx.events
Classpublic final class ListEventReason
InheritanceListEventReason Inheritance Object

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



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined 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
CANCELLEDConstant
public static const CANCELLED:String = "cancelled"

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_ROWConstant 
public static const NEW_ROW:String = "newRow"

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.

OTHERConstant 
public static const OTHER:String = "other"

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.