Package | fl.events |
Class | public final class DataGridEventReason |
Inheritance | DataGridEventReason Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
reason
property of the DataGridEvent object
when the value of the type
property is itemEditEnd
.
Related API Elements
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object |
Method | Defined By | ||
---|---|---|---|
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Constant | Defined By | ||
---|---|---|---|
CANCELLED : String = "cancelled" [static]
The user canceled editing and does not want to save the edited
data. | DataGridEventReason | ||
NEW_COLUMN : String = "newColumn" [static]
The user moved focus to a new column in the same row. | DataGridEventReason | ||
NEW_ROW : String = "newRow" [static]
Indicates that the user moved focus to a new row. | DataGridEventReason | ||
OTHER : String = "other" [static]
The list component lost focus, was scrolled, or is in a state where
editing is not allowed. | DataGridEventReason |
CANCELLED | Constant |
public static const CANCELLED:String = "cancelled"
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
The user canceled editing and does not want to save the edited data.
Even if you call the preventDefault()
method
from your event listener for the itemEditEnd
event,
Flash still calls the destroyItemEditor()
editor to close the editor.
Related API Elements
NEW_COLUMN | Constant |
public static const NEW_COLUMN:String = "newColumn"
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
The user moved focus to a new column in the same row.
Your event listener can include logic that permits a change in focus
or that stops it. For example, if an event listener detects that the user
entered an invalid value, the event listener can make a call to the
preventDefault()
method to stop focus from being moved to a
new item. The item editor remains open and the user continues to edit the
current item. To close the editor that is associated with the current item,
call the destroyItemEditor()
method.
Related API Elements
NEW_ROW | Constant |
public static const NEW_ROW:String = "newRow"
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
Indicates that the user moved focus to a new row.
Your event listener can include logic that permits a change in focus
or that stops it. For example, if an event listener detects that the user
entered an invalid value, the event listener can make a call to the
preventDefault()
method to stop focus from being moved to a
new row. The item editor remains open and the user continues to edit the
current item. To close the editor that is associated with the current item,
call the destroyItemEditor()
method.
Related API Elements
OTHER | Constant |
public static const OTHER:String = "other"
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
The list component lost focus, was scrolled, or is in a state where editing is not allowed.
Even if you call the preventDefault()
method from your event
listener for the itemEditEnd
event, Flash still calls the
destroyItemEditor()
editor to close the editor.
Related API Elements
Thu Dec 4 2014, 05:50 PM -08:00