摘要: 针对如何进行复杂用户界面(UI)程序设计及UI组件难以重用的问题,总结界面设计的解耦原则,提出统一的设计思想及其实现方法。解耦原则符合敏捷软件的开发及可测试要求,通过依赖注入使系统界面组件的耦合性降到最低,组件之间能够灵活组合。医疗影像归档系统界面的设计与实现证明了该设计原则及方法具有较好的灵活性及适用性。
关键词:
用户界面设计,
松耦合,
控制反转,
依赖注入
Abstract: Aiming at the problem that how to program for complex User Interface(UI) and difficulty in reusing UI control, this paper concludes the principles of interface design of the decoupling, which accords with the principles of agile software development and test requirements, and proposes a unified design concept and its implementation method. By summarizing the level request of interface design and analyzing the design pattern for various modules decoupling, it uses dependency injection technology to make the coupling of system interface modules bottom out, enabling the modules combine nimbly. The interface design of PACS proves that the principles and design method are flexibility and adaptability.
Key words:
User Interface(UI) design,
loosely coupled,
Inversion of Control(IoC),
dependency injection
中图分类号:
齐鑫, 修丽强. 用户界面松耦合设计及其实现[J]. 计算机工程, 2010, 36(21): 272-274.
JI Xin, XIU Li-Jiang. Loosely Coupled User Interface Design and Its Implementation[J]. Computer Engineering, 2010, 36(21): 272-274.