Paket | spark.events |
Klass | public class GridItemEditorEvent |
Arv | GridItemEditorEvent Event Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The life cycle starts with the dispatch of an
GRID_ITEM_EDITOR_SESSION_STARTING
event.
You can cancel the event to stop the editing session by
calling the preventDefault()
method in the event listener.
After the item editor opens, the GRID_ITEM_EDITOR_SESSION_START
is dispatched to notify listeners that the editor has been opened.
The editing session can be saved or canceled. If the session is saved,
then the GRID_ITEM_EDITOR_SESSION_SAVE
event is dispatched.
If the editor is canceled, a GRID_ITEM_EDITOR_SESSION_CANCEL
event is dispatched.
Relaterade API-element
spark.components.gridClasses.IGridItemEditor
spark.components.gridClasses.GridColumn
spark.components.gridClasses.GridColumn.itemEditor
Egenskap | Definieras med | ||
---|---|---|---|
bubbles : Boolean [skrivskyddad]
indikerar om händelsen är en bubblande händelse. | Event | ||
cancelable : Boolean [skrivskyddad]
Indikerar om beteendet som är kopplat till händelsen kan förhindras. | Event | ||
column : GridColumn
The column of the cell that is being edited. | GridItemEditorEvent | ||
columnIndex : int
The zero-based index of the column that is being edited. | GridItemEditorEvent | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
currentTarget : Object [skrivskyddad]
Det objekt som aktivt behandlar Event-objektet med en händelseavlyssnare. | Event | ||
eventPhase : uint [skrivskyddad]
Den nuvarande fasen i händelseflödet. | Event | ||
rowIndex : int
The index of the row that is being edited. | GridItemEditorEvent | ||
target : Object [skrivskyddad]
Händelsens mål. | Event | ||
type : String [skrivskyddad]
Händelsens typ. | Event |
Metod | Definieras med | ||
---|---|---|---|
GridItemEditorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, rowIndex:uint = -1, columnIndex:uint = -1, column:GridColumn = null)
Constructor. | GridItemEditorEvent | ||
Skapar ett duplikat av en instans av en Event-underklass. | Event | ||
Ett verktyg som används för att implementera metoden toString() i de anpassade klasserna ActionScript 3.0. | Event | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Kontrollerar om preventDefault()-metoden har anropats för händelsen. | Event | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Avbryter en händelses standardbeteende om det beteendet kan avbrytas. | Event | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Förhindrar behandling av händelsehanterare i den aktuella noden och alla noder som följer den aktuella noden i händelseflödet. | Event | ||
Förhindrar behandling av händelsehanterare i noder som följer den aktuella noden i händelseflödet. | Event | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar en sträng som innehåller alla egenskaper i Event-objektet. | Event | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras med | ||
---|---|---|---|
GRID_ITEM_EDITOR_SESSION_CANCEL : String = "gridItemEditorSessionCancel" [statisk]
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_CANCEL
constant defines the value of the type property of the
event object for a cancelridItemEditor event. | GridItemEditorEvent | ||
GRID_ITEM_EDITOR_SESSION_SAVE : String = "gridItemEditorSessionSave" [statisk]
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_SAVE
constant defines the value of the type property of the
event object for a saveGridItemEditor event. | GridItemEditorEvent | ||
GRID_ITEM_EDITOR_SESSION_START : String = "gridItemEditorSessionStart" [statisk]
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_START
constant defines the value of the type property of the
event object for a openGridItemEditor event. | GridItemEditorEvent | ||
GRID_ITEM_EDITOR_SESSION_STARTING : String = "gridItemEditorSessionStarting" [statisk]
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_STARTING
constant defines the value of the type property of the
event object for a startGridItemEditorSession event. | GridItemEditorEvent |
column | egenskap |
public var column:GridColumn
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The column of the cell that is being edited.
columnIndex | egenskap |
public var columnIndex:int
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The zero-based index of the column that is being edited.
rowIndex | egenskap |
public var rowIndex:int
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The index of the row that is being edited.
GridItemEditorEvent | () | Konstruktor |
public function GridItemEditorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, rowIndex:uint = -1, columnIndex:uint = -1, column:GridColumn = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
Constructor.
Parametrartype: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.
| |
rowIndex:uint (default = -1 ) — The zero-based index of the column that is being edited.
| |
columnIndex:uint (default = -1 ) — The zero-based index of the column that is being edited.
| |
column:GridColumn (default = null ) — The column that is being edited.
|
Relaterade API-element
GRID_ITEM_EDITOR_SESSION_CANCEL | Konstant |
public static const GRID_ITEM_EDITOR_SESSION_CANCEL:String = "gridItemEditorSessionCancel"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_CANCEL
constant defines the value of the type
property of the
event object for a cancelridItemEditor
event.
Dispatched after the item editor has been closed without saving its data.
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 . |
columnIndex | The zero-based column index of the item that was edited but not modified. |
rowIndex | The zero-based row index of the item that was edited but not modified. |
column | The column of the cell that was edited. |
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. |
type | GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_CANCEL |
Relaterade API-element
GRID_ITEM_EDITOR_SESSION_SAVE | Konstant |
public static const GRID_ITEM_EDITOR_SESSION_SAVE:String = "gridItemEditorSessionSave"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_SAVE
constant defines the value of the type
property of the
event object for a saveGridItemEditor
event.
Dispatched after the data in item editor has been saved into the data
provider and the editor has been closed.
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 . |
columnIndex | The zero-based column index of the item that was modified. |
rowIndex | The zero-based row index of the item that was modified. |
column | The column of the cell that was edited. |
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. |
type | GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_SAVE |
Relaterade API-element
GRID_ITEM_EDITOR_SESSION_START | Konstant |
public static const GRID_ITEM_EDITOR_SESSION_START:String = "gridItemEditorSessionStart"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_START
constant defines the value of the type
property of the
event object for a openGridItemEditor
event.
Dispatched immediately after an item editor has been opened.
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 . |
columnIndex | The zero-based column index of the item editor. |
rowIndex | The zero-based row index of the item editor. |
column | The column of the cell that is being edited. |
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. |
type | GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_START |
Relaterade API-element
GRID_ITEM_EDITOR_SESSION_STARTING | Konstant |
public static const GRID_ITEM_EDITOR_SESSION_STARTING:String = "gridItemEditorSessionStarting"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4.5 |
Körningsmiljöversioner: | Flash Player 10, AIR 2.5 |
The GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_STARTING
constant defines the value of the type
property of the
event object for a startGridItemEditorSession
event.
Dispatched when a new item editor session has been requested. A listener
can dynamically determine if a cell is editable and cancel the edit by calling
the preventDefault()
method if it is not.
A listener can also dynamically change the editor used
by assigning a different item editor to a grid column.
If this event is canceled the item editor will not be created.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true |
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 . |
columnIndex | The zero-based column index of the requested item editor. |
rowIndex | The zero-based row index of the requested item editor. |
column | The column of the cell associated with the edit request. |
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. |
type | GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_STARTING |
Relaterade API-element
Tue Jun 12 2018, 01:40 PM Z