Packagecom.vmware.data.common.events
Classpublic class ModelChangeEvent
InheritanceModelChangeEvent Inheritance flash.events.Event

Event raised when the model is changed.



Public Properties
 PropertyDefined By
  objectChangeInfos : Array
An array of ObjectChangeInfo describing the changes to the model
ModelChangeEvent
Public Methods
 MethodDefined By
  
ModelChangeEvent(type:String)
ModelChangeEvent
  
clone():Event
[override]
ModelChangeEvent
  
newInstance(changeInfos:Array):ModelChangeEvent
[static] Generate a ModelChangeEvent with an array of ObjectChanges
ModelChangeEvent
  
newSingleObjectChangeEvent(object:IResourceReference, opType:OperationType, oldGeneration:int = -1, newGeneration:int = -1):ModelChangeEvent
[static] Generate a ModelChangeEvent with only one object change.
ModelChangeEvent
Public Constants
 ConstantDefined By
  MODEL_CHANGE : String = modelChange
[static]
ModelChangeEvent
  OBJECT_STATE_CHANGE : String = objectStateChange
[static] This event type signifies that the propagated change that affects the object representation state: name + icon.
ModelChangeEvent
Property Detail
objectChangeInfosproperty
public var objectChangeInfos:Array

An array of ObjectChangeInfo describing the changes to the model

Constructor Detail
ModelChangeEvent()Constructor
public function ModelChangeEvent(type:String)



Parameters
type:String (default = NaN)
Method Detail
clone()method
override public function clone():Event

Returns
Event
newInstance()method 
public static function newInstance(changeInfos:Array):ModelChangeEvent

Generate a ModelChangeEvent with an array of ObjectChanges

Parameters

changeInfos:Array — An array of ObjectChangeInfos

Returns
ModelChangeEvent — A ModelChangeEvent containing the specified changes.
newSingleObjectChangeEvent()method 
public static function newSingleObjectChangeEvent(object:IResourceReference, opType:OperationType, oldGeneration:int = -1, newGeneration:int = -1):ModelChangeEvent

Generate a ModelChangeEvent with only one object change.

Parameters

object:IResourceReference — The object which has changed.
 
opType:OperationType — The nature of the operation performed on the object.
 
oldGeneration:int (default = -1) — The previous generation number of the object.
 
newGeneration:int (default = -1) — The new generation number of the object.

Returns
ModelChangeEvent — A ModelChangeEvent containing the change.
Constant Detail
MODEL_CHANGEConstant
public static const MODEL_CHANGE:String = modelChange

OBJECT_STATE_CHANGEConstant 
public static const OBJECT_STATE_CHANGE:String = objectStateChange

This event type signifies that the propagated change that affects the object representation state: name + icon. That does not mean other properties have not changed too. The event indicates merely that at least one property part of the object representation state (icon + name) has changed for sure. This even can be thrown quite often even without any user interaction as result of live update. So only a small number of handlers should process this even and with care.