本学习笔记多来自sap library,本人翻译+自己的理解,如果有什么不对的地方,还请大家指正.
这一节基本上都是基本概念的介绍,大好基础最重要嘛,推荐这里还是好好理解一下.
WD Model MVC: 设计模式中的经典
从上面的图,我们可以了解到WD的MVC是如何工作的
控制器:处理事件,更新应用数据,定义流程
模型:定义数据,连接
视图:用户所看到的
WD component
有一些特性是我们应该知道的:
1.可以包含任意数量的windows,views以及与之对应的controllers
2.可以嵌套其他的component
3.每个WD application必须有component(从昨天的笔记中可以看到,我们第一个建的就是conponent)
4.每个component包含一个interface,每个interface包含两个部分
interface view:用来链接WD application和WD window
interface controller:进行数据交换控制
WD View
1.每个WD application至少有一个view
2.每个view里面可以放置不同的UI element(例如我们昨天的caption)
3.两个很重要的组件:controller+context
context用来存储以及管理数据和UI element的绑定
controller用来取得数据或者处理用户输入等等
4.每个view都有进入的接口(plug,接口可能不是很合适,不过比较容易理解)以及出去的接口.进来的接口用来得到这个view的开始点,而出去的接口用来调用下一个view.注意:每个window可能有几个view,所以必须指定第一个view,相应的,第一个view没有进入接口(inbound plug).
5.连接关系:几个view之间的连接通过导航链接(Navigation Link)来实现.
WD Window
1.Window是多个view的组合容器,view必须在window中才能被用户看到.
2.一个window包含至少一个view,如果是多个view的话通过导航链接实现,当然,必须定义开始的view
3.每个window可以有一个或者多个进入以及输出端(Plug),对应于view的plug
outbound plug:链接window和view的inbound plug
inbound plug:链接view的outbound plug到嵌入window
WD Controller
1.定义了用户如何与WD application进行交互
2.View controller:每个view只有一个view controller以及一个view context
3.Global controller:顾名思义,全局的controller,在程序运行过程中始终可访问
WD Application
用户调用的入口
hey all, I used to be simply checkin’ out this weblog and I actually admire the idea of the article, and have nothing to do, so if anyone want to to have an engrossing convo about it, please contact me on AIM, my identify is heather smith
I truly like the style of the web-site. I had a peek at your source code, hope you do not mind, to check what theme you’re using. Is it it a no cost theme or do I’ve to purchase it?
I wanted to say your blog is incredibly good. I usually like to hear one thing new about this since I have the similar blog in my Country on this subject so this help´s me a lot. I did a search on the matter and observed a very good range of blogs but nothing like this.Thanks for sharing so a lot within your blog.