Packagevegas.events
Classpublic class ModelObjectEvent
InheritanceModelObjectEvent Inheritance BasicEvent Inheritance flash.events.Event

The ModelObjectEvent is the basic event use in a IModelObject to notify changed.



Public Properties
 PropertyDefined By
  ADD_VO : String = addVO
[static] Default event type when the ValueObject is inserted in a model.
ModelObjectEvent
  BEFORE_CHANGE_VO : String = beforeChangeVO
[static] Default event type before the change event notify when the current IValueObject in a model is changed.
ModelObjectEvent
  CHANGE_VO : String = changeVO
[static] Default event type when the current ValueObject is changed in the model.
ModelObjectEvent
  CLEAR_VO : String = clearVO
[static] Default event type when all ValueObject in a model are deleted.
ModelObjectEvent
 Inheritedcontext : *
Determinates the optional context of this event.
BasicEvent
  REMOVE_VO : String = removeVO
[static] Default event type when the ValueObject is removed in a model.
ModelObjectEvent
 Inheritedtarget : Object
[override] Indicates the custom event target.
BasicEvent
 InheritedtimeStamp : uint
[read-only] Indicates the timestamp of the event.
BasicEvent
 Inheritedtype : String
[override] Returns the type of event.
BasicEvent
  UPDATE_VO : String = updateVO
[static] Default event type when the ValueObject in the model is updated.
ModelObjectEvent
Public Methods
 MethodDefined By
  
ModelObjectEvent(type:String, model:ModelObject = null, vo:ValueObject = null, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new ModelObjectEvent instance.
ModelObjectEvent
  
clone():Event
[override] Returns the shallow copy of this object.
ModelObjectEvent
 Inherited
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
BasicEvent
  
Returns the ModelObject reference of this event.
ModelObjectEvent
  
Returns a ValueObject reference.
ModelObjectEvent
  
setModel(model:ModelObject):void
Sets the ModelObject reference of this event.
ModelObjectEvent
  
Sets the ValueObject reference.
ModelObjectEvent
 Inherited
toString():String
[override] Returns the string representation of this event.
BasicEvent
Protected Methods
 MethodDefined By
 Inherited
setTimeStamp(time:uint = 0):void
Sets the timestamp of the event (used this method only in internal in the Event class).
BasicEvent
Property Detail
ADD_VOproperty
public static var ADD_VO:String = addVO

Default event type when the ValueObject is inserted in a model.

BEFORE_CHANGE_VOproperty 
public static var BEFORE_CHANGE_VO:String = beforeChangeVO

Default event type before the change event notify when the current IValueObject in a model is changed.

CHANGE_VOproperty 
public static var CHANGE_VO:String = changeVO

Default event type when the current ValueObject is changed in the model.

CLEAR_VOproperty 
public static var CLEAR_VO:String = clearVO

Default event type when all ValueObject in a model are deleted.

REMOVE_VOproperty 
public static var REMOVE_VO:String = removeVO

Default event type when the ValueObject is removed in a model.

UPDATE_VOproperty 
public static var UPDATE_VO:String = updateVO

Default event type when the ValueObject in the model is updated.

Constructor Detail
ModelObjectEvent()Constructor
public function ModelObjectEvent(type:String, model:ModelObject = null, vo:ValueObject = null, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)

Creates a new ModelObjectEvent instance.

Parameters
type:String — the type of the event.
 
model:ModelObject (default = null) — model the IModelObject reference of this event.
 
vo:ValueObject (default = null) — the ValueObject of this event.
 
target:Object (default = null) — the target of the event.
 
context:* (default = null) — The information object of this event.
 
bubbles:Boolean (default = false) — the optional context object of the event.
 
cancelable:Boolean (default = false) — indicates if the event is a bubbling event.
 
time:Number (default = 0) — indicates if the event is a cancelable event.
Method Detail
clone()method
override public function clone():Event

Returns the shallow copy of this object.

Returns
Event — the shallow copy of this object.
getModel()method 
public function getModel():ModelObject

Returns the ModelObject reference of this event.

Returns
ModelObject — the ModelObject reference of this event.
getVO()method 
public function getVO():ValueObject

Returns a ValueObject reference.

Returns
ValueObject — a ValueObject reference.
setModel()method 
public function setModel(model:ModelObject):void

Sets the ModelObject reference of this event.

Parameters

model:ModelObject

setVO()method 
public function setVO(vo:ValueObject):void

Sets the ValueObject reference.

Parameters

vo:ValueObject