| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
Object
|
+--xp.events.Event
|
+--xp.events.ModelChangedEvent
Field Summary | ||
| eventName: String | ||
| A string that describes the change that took place. | ||
| fieldName: String | ||
| The name of the field this event is related to. Only set for updateField. | ||
| firstItem: Number | ||
| The index (number) of the first item in the collection that was affected by the change. | ||
| lastItem: Number | ||
| The index (number) of the last item in the collection that was affected by the change (equals firstItem if only one item was affected). | ||
| subtype | ||
| Deprecated. | ||
| type: String | ||
| The type of event, the string "modelChanged". | ||
| ||
Constructor | ||
| public | ModelChangedEvent ( eventName: String, firstItem: Number, lastItem: Number, fieldName: String) | |
| Constructs a new ModelChanged event | ||
| var eventName: String |
| A string that describes the change that took place. This can be one of the following values: "addItems" A series of items has been added. "filterModel" The model has been filtered, and the view needs refreshing (reset scroll position). "removeItems" A series of items has been deleted. "schemaLoaded" The fields definition of the data provider has been declared. "sort" The data has been sorted. "updateAll" The entire view needs refreshing, excluding scroll position. "updateColumn" An entire field’s definition in the data provider needs refreshing. "updateField" A field in an item has been changed and needs refreshing. "updateItems" A series of items needs refreshing. |
| var fieldName: String |
| The name of the field this event is related to. Only set for updateField. |
| var firstItem: Number |
| The index (number) of the first item in the collection that was affected by the change. |
| var lastItem: Number |
| The index (number) of the last item in the collection that was affected by the change (equals firstItem if only one item was affected). |
| var subtype |
| Deprecated. A string that describes the change that took place. |
| var type: String |
| The type of event, the string "modelChanged". |
|
| Constructs a new ModelChanged event Broadcast when items in the collection have been modified in some way. | ||||||||||||
|