摘要
传统的图形用户界面开发与具体的程序设计语言和软件开发平台密切相关。图形用户界面开发的这种紧耦合性对软件开发的后续过程和软件移植以及软件开发各阶段工作的重用造成了很大的困难。在分析传统图形用户界面开发存在问题的基础上,提出一种基于XML的图形用户界面描述方法,使用这种描述方法定义图形用户界面,可以实现图形用户界面定义与具体程序设计语言和开发平台的无关性。在此基础上,开发了一个基于上述图形用户界面描述方法的B/S架构的图形用户界面生成工具。其借助开源的fckeditor编辑器与用户交互,可以友好便捷地编辑图形用户界面,生成符合要求的图形用户界面XML描述文档;进一步地,再通过dom4j解析相应的XML文档,可以自动生成html格式等与具体语言相关的图形用户界面代码文档。详细介绍提出的基于XML的图形用户界面描述方法,并给出相应图形用户界面生成工具的设计思路和应用实例。
Conventional GUI development is closely related to the detailed programming language and IDE.The close coupling characteristics of GUI development brings great difficulty for later processes in software development,software transplanting as well as the reuse of work in each software development phase.On the basis of analyzing the existing problems in conventional GUI development,the paper proposes an XML-based GUI description method,with which to realize the non-relationship between the GUI definition and the detailed programming language or IDE when this description method is used to define GUI.On this basis,a B/S structured GUI generation tool based on the above mentioned GUI description method is developed.With the help of an open source editor,fckeditor,to interact with users,the GUI generation tool can friendly and straightforwardly edit GUI and generate the GUI XML description document that meets demands.Further,using dom4j to parse corresponding documents,the GUI code documents relative to detailed languages in HTML or other formats can be automatically generated.The paper expounds the proposed XML-based GUI description method and introduces the corresponding GUI generation tool design idea and application instances.
出处
《计算机应用与软件》
CSCD
2011年第10期198-202,共5页
Computer Applications and Software