when and where is createContent called

Created by Jerry Wang, last modified on Aug 07, 2014

initCompositeSupport

Support

Composite

onControllerConnected

oController

createId

byId

runWithPreprocessors

Preprocessors

applySettings

Trigger point为Js view的初始化:

when and where is createContent called


Callstack1: Js view instance 执行initCompositeSupport操作:

when and where is createContent called


Callstack2: this指向JS view,this.oController指向对应的controller instance:

when and where is createContent called


Callstack3: 在onControllerConnected方法内,执行runWithPreprocessors. t指向JS view instance。

when and where is createContent called

Callstack4: 执行传入的function f. Function f 会执行JS view instance的applySettings方法,其输入参数为createContent执行的返回结果。

when and where is createContent called

于是view的createContent方法被触发:

when and where is createContent called

上一篇:浅谈智能医疗中的医疗机器人应用


下一篇:SAP UI5 debug mode