摘要
简要介绍基于ZK框架的RIA系统架构,讨论MVVM设计模式和MVP设计模式在ZK框架中实现的技术特点和应用场合,综合两种设计模式的优点提出了复杂业务系统界面开发的最佳实践,并通过实例给予论证.实例表明,该最佳实践能够应付复杂的界面开发需求,同时保持代码的结构简洁,从而提高系统的维护性.
The ZK-based RIA architecture was briefly described.The technical features and applications about MVVM design pattern and MVP design pattern used in ZK were discussed.The best practices about the complex business systems interface development were proposed with the advantages of the integrated two design patterns,which is given to demonstrate by examples.The examples show that the best practices in maximizing the use of the MVVM design pattern are able to cope with the complexity of the interface development needs,thereby improving the maintainability of the system.
引文
[1]Henri Chen,Robbie Cheng.ZK框架——Ajax开发实战[M].蔡毅,译,北京:电子工业出版社,2009.
[2]Henri Chen.Hello ZK MVVM[EB/OL].(2011-10-17)[2012-05-20].http://books.zkoss.org/wiki/Small%20Talks/2011/November/Hello%20ZK%20MVVM.
[3]Hawk Chen.MVVM in ZK6:in Contrast to MVC[EB/OL].(2011-12-16)[2012-05-20].http://books.zkoss.org/wiki/Small_Talks/2011/December/MVVM_in_ZK6:in_Contrast_to_MVC.
[4]Wikipedia.Model–view–presenter[EB/OL].(2011-08-21)[2012-10-26].http://en.wikipe-dia.org/wiki/Model–view–presenter.
[5]程国雄,胡世清.基于Silverlight的RIA系统架构与设计模式研究[J].计算机工程与设计,2010,31(8):1706-1713.
[6]黎永良,崔杜武.MVC设计模式的改进与应用[J].计算机工程,2005,31(9):96-97.
[7]许鑫,费翔林.基于MVC模式的应用软件开发框架研究[J].计算机工程与应用,2005,30:102-104.
[8]ZK partners.ZK Mobile[EB/OL](2011-04-18)[2012-10-26].http://www.zkoss.org/product/zk-mobile.