| Package | vegas.events |
| Class | public class ModelObjectEvent |
| Inheritance | ModelObjectEvent BasicEvent flash.events.Event |
| Property | Defined 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 | ||
![]() | context : *
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 | ||
![]() | target : Object [override]
Indicates the custom event target. | BasicEvent | |
![]() | timeStamp : uint [read-only]
Indicates the timestamp of the event. | BasicEvent | |
![]() | type : 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 | ||
| Method | Defined 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 | ||
![]() | 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 | ||
setVO(vo:ValueObject):void
Sets the ValueObject reference. | ModelObjectEvent | ||
![]() | toString():String [override]
Returns the string representation of this event. | BasicEvent | |
| ADD_VO | property |
public static var ADD_VO:String = addVO
Default event type when the ValueObject is inserted in a model.
| BEFORE_CHANGE_VO | property |
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_VO | property |
public static var CHANGE_VO:String = changeVO
Default event type when the current ValueObject is changed in the model.
| CLEAR_VO | property |
public static var CLEAR_VO:String = clearVO
Default event type when all ValueObject in a model are deleted.
| REMOVE_VO | property |
public static var REMOVE_VO:String = removeVO
Default event type when the ValueObject is removed in a model.
| UPDATE_VO | property |
public static var UPDATE_VO:String = updateVO
Default event type when the ValueObject in the model is updated.
| 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.
Parameterstype: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.
|
| clone | () | method |
override public function clone():EventReturns the shallow copy of this object.
ReturnsEvent — the shallow copy of this object.
|
| getModel | () | method |
public function getModel():ModelObjectReturns the ModelObject reference of this event.
ReturnsModelObject — the ModelObject reference of this event.
|
| getVO | () | method |
public function getVO():ValueObjectReturns a ValueObject reference.
ReturnsValueObject — a ValueObject reference.
|
| setModel | () | method |
public function setModel(model:ModelObject):voidSets the ModelObject reference of this event.
Parameters
model:ModelObject |
| setVO | () | method |
public function setVO(vo:ValueObject):voidSets the ValueObject reference.
Parameters
vo:ValueObject |