节点文献
Java图形用户界面的XML描述方法
【机构】 清华大学计算机科学与技术系知识工程研究室;
【摘要】 图形用户界面(GUI)技术是一门高级语言的核心技术之一。随着各种计算机软件越来越广泛地采用图形用户界面,许多图形用户界面工具集应运而生。仅仅Java语言中就包含了AWT、Swing,以及目前十分走红的SWT三种开发工具集。虽然这使得开发者拥有了更多的选择余地,但也带给他们无尽的麻烦——不得不为同一个用户界面编写多种工具集的版本,而几乎不可能做到代码复用。本文从分析图形用户界面的基本元素入手,阐述了一种基于XML的,抽象的,并且行之有效的图形用户界面描述语言——JUIL(Java User Interface Language),并针对Swing工具集简单介绍了如何配合JUIL解释器实现“一次定义,随处使用”的图形用户界面应用。
【Abstract】 Graphic User Interface technology is one of the core technologies for a high level programming language. While graphic user interface has been more wildly used in all kinds of software, more and more Graphic User Interface (GUI) toolkits have been increasingly occurring. Only for Java language, there are AWT, Swing, and SWT which is rather popular in developers for the moment. These varied toolkits give developers more choices when they are about to design a GUI application, however, there are also more rough tasks waiting for the developers----they have to duplicate everything of the program codes for each toolkit, and cannot reuse most codes. Therefore, in this article, we analyzed the basic elements of GUI application, and introduced an abstract, efficient GUI description language JUIL (Java User Interface Language) which is based on XML. And another section will explain how to implement the “Once definition, Using anywhere” GUI application with JUIL interpreter for Swing toolkit.
- 【会议录名称】 Java技术及应用的进展——第七届中国Java技术及应用交流大会文集
- 【会议名称】第七届中国Java技术及应用交流大会
- 【会议时间】2004-10
- 【会议地点】中国北京
- 【分类号】TP312.1
- 【主办单位】中国计算机学会计算机应用委员会、中国自动化学会计算机应用委员会、中国电子学会计算机工程与应用委员会、中国信息产业商会微型机与应用分会、中国软件行业协会Java分会、太阳计算机系统(中国)有限公司