| Package | vegas.models |
| Class | public class CoreModel |
| Inheritance | CoreModel CoreEventDispatcher Object |
| Implements | Model |
| Subclasses | ChangeModel, CoreModelObject, PageByPageModel, TabManager |
IModel interface, to minimize the effort required to implement this interface.
| Property | Defined By | ||
|---|---|---|---|
![]() | channel : String [read-only]
Indicates the channel of this dispatcher if this instance is global. | CoreEventDispatcher | |
| id : *
Returns the id of this IModelObject. | CoreModel | ||
| Method | Defined By | ||
|---|---|---|---|
CoreModel(global:Boolean = true, channel:String = null, id:* = null)
Creates a new CoreModel instance. | CoreModel | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target. | CoreEventDispatcher | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() |
Returns the internal system.events.EventDispatcher reference. | CoreEventDispatcher | |
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | CoreEventDispatcher | |
![]() | isGlobal():Boolean
Indicates if the dispatcher use a global event flow. | CoreEventDispatcher | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreEventDispatcher | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
![]() | registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target (Function or EventListener). | CoreEventDispatcher | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | CoreEventDispatcher | |
run(... arguments):void
Run the first process with this model. | CoreModel | ||
![]() | setEventDispatcher(dispatcher:EventDispatcher):void
Sets the internal EventDispatcher reference. | CoreEventDispatcher | |
![]() | setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() | unlock():void
Unlocks the display. | CoreEventDispatcher | |
![]() | unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object. | CoreEventDispatcher | |
![]() | willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | CoreEventDispatcher | |
| id | property |
id:*
Returns the id of this IModelObject. This method is use to register this object in a category of models.
You can overrides this method to change the nature of the natural id property of this object but this hack don't modify the value of the id property.
public function get id():* public function set id(value:any):void| CoreModel | () | Constructor |
public function CoreModel(global:Boolean = true, channel:String = null, id:* = null)Creates a new CoreModel instance.
Parametersglobal:Boolean (default = true) — the flag to use a global event flow or a local event flow (default true).
| |
channel:String (default = null) — the name of the global event flow if the global argument is true.
| |
id:* (default = null) — the id of the model.
|
| run | () | method |
public function run(... arguments):voidRun the first process with this model. Overrides this method if you want implement a command process.
Parameters
... arguments |