Packagecom.soma.core.interfaces
Interfacepublic interface IModel
Implementors Model

Author: Romuald Quantin - www.soundstep.com

Resources: http://www.soundstep.com/downloads/somacore

Actionscript version: 3.0

Copyright: Mozilla Public License 1.1 (MPL 1.1) http://www.opensource.org/licenses/mozilla1.1.php

See also

com.soma.core.model.Model


Public Properties
 PropertyDefined By
  data : Object
Data of the model.
IModel
  dispatcher : IEventDispatcher
EventDispatcher instance of the model.
IModel
Public Methods
 MethodDefined By
  
dispose():void
Method that you can overwrite, called by the framework when the model is removed.
IModel
  
getName():String
Retrieves the name of the model.
IModel
  
initialize():void
Method that you can overwrite, called by the framework when the model is initialized.
IModel
  
setName(name:String):void
Sets the name of the model.
IModel
Property Detail
dataproperty
data:Object

Data of the model.


Implementation
    public function get data():Object
    public function set data(value:Object):void
dispatcherproperty 
dispatcher:IEventDispatcher

EventDispatcher instance of the model.

The default value is The framework instance..


Implementation
    public function get dispatcher():IEventDispatcher
    public function set dispatcher(value:IEventDispatcher):void
Method Detail
dispose()method
public function dispose():void

Method that you can overwrite, called by the framework when the model is removed.

getName()method 
public function getName():String

Retrieves the name of the model.

Returns
String — A String.
initialize()method 
public function initialize():void

Method that you can overwrite, called by the framework when the model is initialized.

setName()method 
public function setName(name:String):void

Sets the name of the model.

Parameters

name:String — A String.