Main Page | Packages | Class Tree | Index | Help

xp.events

class ItemEvent

Object
  |
  +--xp.events.Event
        |
        +--xp.events.ItemEvent


dynamic class ItemEvent
extends Event

An event broadcast with a collection item.

An event related to a data item. The event has an item property which is the item the event is related to . The event can be one of "newItem". newItem: Broadcast when a new transfer object is constructed by the ListDataSource.createItem() method, but before it is added to the collection. A listener for this event can make modifications to the item before it is added to the collection.
calcFields: Broadcast when calculated fields should be updated. Generated when values of calculated fields for the current item in the collection need to be determined. A calculated field is one whose Kind property is set to Calculated on the Schema tab of the Component inspector. The calcFields event listener that you create should perform the required calculation and set the value for the calculated field. This event is also called when the value of a noncalculated field is updated.
beforeApplyUpdates: Broadcast by the DBMSResolver component to allow u to make custom modifications to the XML of the updatePacket property before it is bound to the connector. The item is the XML object about to be applied. This event handler provides a way for you to make custom modifications to the XML before sending the updated data to a connector.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary


item: Object
Reference to the item .


property: String
Reference to the property in item that may have caused this event to be raised.

Fields inherited from class xp.events.Event

bubbles, cancel, currentTarget, handled, target, type

Constructor

public
ItemEvent ( type: String, item: Object, property: String)
Constructs a new item event



Field Documentation

item

var item: Object
Reference to the item .

property

var property: String
Reference to the property in item that may have caused this event to be raised.


Constructor Documentation

ItemEvent

public function ItemEvent(type: String,
 item: Object,
 property: String)
Constructs a new item event

Parameters:
type
the type of the event
item
reference to the item in the collection.
property

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc