首页 | 本学科首页   官方微博 | 高级检索  
     

基于IOC的GUI框架设计与实现
引用本文:廖福保,张文梅. 基于IOC的GUI框架设计与实现[J]. 微型机与应用, 2011, 30(10)
作者姓名:廖福保  张文梅
作者单位:广东农工商职业技术学院计算机科学系,广东广州,510507
摘    要:传统的图形用户界面GUI(Graphics User Interface)设计中,存在过度耦合、组件与事件之间的映射关系混乱等问题.对此,提出了基于控制反转( IOC)的GUI框架,该框架采用Java反射机制,解析xml配置文件完成组件实例化、组件添加事件监听.实验表明,利用该框架建立的GUI实现了业务对象的松散耦合,组件和事件处理方法分离,缩短开发周期,具有较高的可扩展性.

关 键 词:控制反转  图形用户界面  Java反射机制

Design and implementation of GUI based on IOC
Liao Fubao , Zhang Wenmei. Design and implementation of GUI based on IOC[J]. Microcomputer & its Applications, 2011, 30(10)
Authors:Liao Fubao    Zhang Wenmei
Affiliation:Liao Fubao,Zhang Wenmei(Computer Science College,Guangdong AIB Polytechnic College,Guangzhou 510507,China)
Abstract:The traditional GUI is over coupled and the mapping relationship between component and event is confusion.To solve this issue,this paper gives a GUI framework based on IOC.This framework parses xml configuration file,implements component to be instantiated and adds listener for component by using Java reflection mechanism.The practice shows that the GUI by using this framework to build can complement loosely coupled of business object,separate component and events handling method,reduce the cycle of develop...
Keywords:inversion of control  graphics user interface  Java reflection mechanism  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号