| Package | qnx.ui.events |
| Class | public class DataProviderEvent |
| Inheritance | DataProviderEvent flash.events.Event |
A DataProviderEvent object is dispatched into the event flow whenever a DataProvider change occurs. A change occurs
through modification of the DataProvider by adding, removing, replacing, or updating.
See also
| Property | Defined By | ||
|---|---|---|---|
| changeType : String [read-only]
Gets the type of change that occured on the data provider. | DataProviderEvent | ||
| childEndIndex : int [read-only]
Gets the end index of the child items that were modified in a SectionDataProvider. | DataProviderEvent | ||
| childStartIndex : int [read-only]
Gets the start index of the child items that were modified in a SectionDataProvider. | DataProviderEvent | ||
| endIndex : int [read-only]
Gets the end index of the items that were modified. | DataProviderEvent | ||
| items : Array [read-only]
Gets the items that have been modified
| DataProviderEvent | ||
| startIndex : int [read-only]
Gets the start index of the items that were modified. | DataProviderEvent | ||
| Method | Defined By | ||
|---|---|---|---|
DataProviderEvent(changeType:String, items:Array, startIndex:int, endIndex:int, childStartIndex:int = -1, childEndIndex:int = -1)
Constructs a DataProviderEvent object. | DataProviderEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| ADD_CHILD : String = addChild [static]
Dispatched when children have been added to an item in a section data provider. | DataProviderEvent | ||
| ADD_ITEM : String = addItem [static]
Dispatched when items have been added to a data provider. | DataProviderEvent | ||
| DATA_CHANGE : String = dataChange [static]
Dispatched when the DataProvider is modified. | DataProviderEvent | ||
| REMOVE_ALL : String = removeAll [static]
Dispatched when all items have been removed from the data provider. | DataProviderEvent | ||
| REMOVE_ALL_CHILDREN : String = removeChildren [static]
Dispatched when all children have been removed from an item in a section data provider. | DataProviderEvent | ||
| REMOVE_CHILD : String = removeChild [static]
Dispatched when children have been removed from an item in a section data provider. | DataProviderEvent | ||
| REMOVE_ITEM : String = removeItem [static]
Dispatched when items have been removed from a data provider. | DataProviderEvent | ||
| REPLACE_CHILD : String = replaceChild [static]
Dispatched when children have been replaced within an item in a section data provider. | DataProviderEvent | ||
| REPLACE_ITEM : String = replaceItem [static]
Dispatched when items have been replaced in the data provider. | DataProviderEvent | ||
| UPDATE_ALL : String = updateAll [static]
Dispatched when all the items have been updated in the data provider. | DataProviderEvent | ||
| UPDATE_ALL_CHILDREN : String = updateChildren [static]
Dispatched when all children have been updated within an item in a section data provider. | DataProviderEvent | ||
| UPDATE_CHILD : String = updateChild [static]
Dispatched when a child has been updated in an item in a section data provider. | DataProviderEvent | ||
| UPDATE_ITEM : String = updateItem [static]
Dispatched when items have been updated in the data provider. | DataProviderEvent | ||
| changeType | property |
changeType:String [read-only] Gets the type of change that occured on the data provider.
public function get changeType():StringSee also
| childEndIndex | property |
childEndIndex:int [read-only]
Gets the end index of the child items that were modified in a SectionDataProvider.
public function get childEndIndex():intSee also
| childStartIndex | property |
childStartIndex:int [read-only]
Gets the start index of the child items that were modified in a SectionDataProvider.
public function get childStartIndex():intSee also
| endIndex | property |
endIndex:int [read-only] Gets the end index of the items that were modified.
public function get endIndex():int| items | property |
items:Array [read-only] Gets the items that have been modified
public function get items():Array| startIndex | property |
startIndex:int [read-only] Gets the start index of the items that were modified.
public function get startIndex():int| DataProviderEvent | () | Constructor |
public function DataProviderEvent(changeType:String, items:Array, startIndex:int, endIndex:int, childStartIndex:int = -1, childEndIndex:int = -1)
Constructs a DataProviderEvent object.
changeType:String — The type of change that occured.
| |
items:Array — An Array of the items that where modified.
| |
startIndex:int — The start index of the items that were modified in the data provider.
| |
endIndex:int — The end index of the items that were modified in the data provider.
| |
childStartIndex:int (default = -1) — The start index of the children items that were modified in the data provider.
| |
childEndIndex:int (default = -1) — The end index of the children items that were modified in the data provider.
|
| ADD_CHILD | Constant |
public static const ADD_CHILD:String = addChildDispatched when children have been added to an item in a section data provider.
See also
| ADD_ITEM | Constant |
public static const ADD_ITEM:String = addItemDispatched when items have been added to a data provider.
See also
| DATA_CHANGE | Constant |
public static const DATA_CHANGE:String = dataChange
Dispatched when the DataProvider is modified.
| REMOVE_ALL | Constant |
public static const REMOVE_ALL:String = removeAllDispatched when all items have been removed from the data provider.
See also
| REMOVE_ALL_CHILDREN | Constant |
public static const REMOVE_ALL_CHILDREN:String = removeChildrenDispatched when all children have been removed from an item in a section data provider.
See also
| REMOVE_CHILD | Constant |
public static const REMOVE_CHILD:String = removeChildDispatched when children have been removed from an item in a section data provider.
See also
| REMOVE_ITEM | Constant |
public static const REMOVE_ITEM:String = removeItemDispatched when items have been removed from a data provider.
See also
| REPLACE_CHILD | Constant |
public static const REPLACE_CHILD:String = replaceChildDispatched when children have been replaced within an item in a section data provider.
See also
| REPLACE_ITEM | Constant |
public static const REPLACE_ITEM:String = replaceItemDispatched when items have been replaced in the data provider.
See also
| UPDATE_ALL | Constant |
public static const UPDATE_ALL:String = updateAllDispatched when all the items have been updated in the data provider.
See also
| UPDATE_ALL_CHILDREN | Constant |
public static const UPDATE_ALL_CHILDREN:String = updateChildrenDispatched when all children have been updated within an item in a section data provider.
See also
| UPDATE_CHILD | Constant |
public static const UPDATE_CHILD:String = updateChildDispatched when a child has been updated in an item in a section data provider.
See also
| UPDATE_ITEM | Constant |
public static const UPDATE_ITEM:String = updateItemDispatched when items have been updated in the data provider.
See also