Main Page | Packages | Class Tree | Index | Help

xp.events

class XMLModelChangedEvent

Object
  |
  +--xp.events.Event
        |
        +--xp.events.ModelChangedEvent
              |
              +--xp.events.XMLModelChangedEvent


class XMLModelChangedEvent
extends ModelChangedEvent

Broadcast when nodes in an xml document have been modified in some way.

Broadcast when the document changes in some way—for example, when node are removed or added to the document. Note that an xml document may be simultaneously bound to several different datasources in different places and levels, this event when raised will bubble up the tree and be broadcast at each level that is bound.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary


eventName: String
A string that describes the change that took place.


index: Number
Deprecated. 


node: XMLNode
The XMLNode the event is related to


parentNode: XMLNode
The parent XMLNode


type: String
The type of event, the string "modelChanged".

Fields inherited from class xp.events.ModelChangedEvent

eventName, fieldName, firstItem, lastItem, subtype, type

Fields inherited from class xp.events.Event

bubbles, cancel, currentTarget, handled, target, type

Constructor

public
XMLModelChangedEvent ( eventName: String, node: XMLNode, parentNode: XMLNode, index: Number)
Constructs a new XMLModelChanged event



Field Documentation

eventName

var eventName: String
A string that describes the change that took place.

This can be one of the following values:
"addNode" A node has been added.
"removeNode" A node has been deleted.
"updateTree" The entire tree needs refreshing.

index

var index: Number
Deprecated. 

The index of the node in its parents childNodes array

node

var node: XMLNode
The XMLNode the event is related to

parentNode

var parentNode: XMLNode
The parent XMLNode

type

var type: String
The type of event, the string "modelChanged".


Constructor Documentation

XMLModelChangedEvent

public function XMLModelChangedEvent(eventName: String,
 node: XMLNode,
 parentNode: XMLNode,
 index: Number)
Constructs a new XMLModelChanged event

Broadcast when a node has been inserted or deleted

Parameters:
eventName
A string that describes the change that took place.
node
The XMLNode that the event is related to
parentNode
The parentNode of node
index
The index (number) of the node in its parentNodes childnodes array

The documentation was generated from the following file:


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