摘要
提出了由数据模式和界面模式生成界面代码的方法,并在Rational Rose设计环境下通过RoseScript进行了实现。该方法所产生的界面代码可以是不同语言或者开发环境下的应用程序代码如基于Java Swing界面代码、Borland dbSwing、JSP的网页界面、基于C#语言的WinForm界面代码,也可以产生标准界面描述文件或者基于某种开发框架的界面描述文件如基于GUI4J框架。将该方法应用于土地工程信息系统的开发中,在一定程度上提高了界面设计的重用性和效率,从而提高软件的开发效率和可维护能力。
A method of data pattern and UI pattern approach automatically generates UI code is proposed in this paper,and which has been realized with RoseScript in the design environment of Rational Rose.The UI code with the method above can be different language or development environment application,such as Java-based Swing、Borland dbSwing、JSP web page、C#-based WinForm,it can also have a standard or a development framework interface description file,such as GUI4 Jframework.Finally,The method is applied to the development of land engineering information system.The proposed of this method to a certain degree improved the reusability and efficiency of user interface design,and improve software development efficiency and maintainability.