Package | artcustomer.framework.core |
Class | public class AbstractModel |
Inheritance | AbstractModel Object |
Method | Defined By | ||
---|---|---|---|
Constructor
| AbstractModel | ||
destroy():void
Destroy data in model. | AbstractModel | ||
getModel(id:String):IMacroModel
Get MacroModel. | AbstractModel | ||
hasregisterModel(id:String):Boolean
Has Registered MacroModel. | AbstractModel | ||
init():void
Initialize data in model. | AbstractModel | ||
registerModel(modelClass:Class, modelID:String):void
Register MacroModel. | AbstractModel | ||
reset():void
Reset data in model. | AbstractModel | ||
setup():void
Setup data in model. | AbstractModel | ||
unregisterModel(id:String):void
Unregister MacroModel. | AbstractModel | ||
Call this method after update data in order to update views in Component. | AbstractModel |
Event | Summary | Defined By | ||
---|---|---|---|---|
AbstractModel |
AbstractModel | () | Constructor |
public function AbstractModel()
Constructor
destroy | () | method |
public function destroy():void
Destroy data in model. Must be overrided and called at last in child !
getModel | () | method |
public final function getModel(id:String):IMacroModel
Get MacroModel. Never be overrided.
Parameters
id:String |
IMacroModel —
|
hasregisterModel | () | method |
public final function hasregisterModel(id:String):Boolean
Has Registered MacroModel. Never be overrided.
Parameters
id:String |
Boolean —
|
init | () | method |
public function init():void
Initialize data in model. Can be overrided.
registerModel | () | method |
public final function registerModel(modelClass:Class, modelID:String):void
Register MacroModel. Never be overrided.
Parameters
modelClass:Class | |
modelID:String |
reset | () | method |
public function reset():void
Reset data in model. Can be overrided.
setup | () | method |
public function setup():void
Setup data in model. Must be overrided and called at first in child !
unregisterModel | () | method |
public final function unregisterModel(id:String):void
Unregister MacroModel. Never be overrided.
Parameters
id:String |
update | () | method |
public function update(updateType:String, data:IViewData, viewID:String = null, isViewSetup:Boolean = true):void
Call this method after update data in order to update views in Component. Can be overrided.
Parameters
updateType:String — : Type of the update, a string id.
| |
data:IViewData — : ViewData object that store the data
| |
viewID:String (default = null ) — : Id of the view, if null, all views wiil be updated
| |
isViewSetup:Boolean (default = true ) — : Specified if the views would be setuped before update
|
notifyUpdate | Event |