基于命令模式的Java AWT事件处理的改进设计与实现  被引量:2

Improvement Design of the Java AWT Event Processing under Command Line

在线阅读下载全文

作  者:张跃平[1] 

机构地区:[1]大连交通大学软件学院

出  处:《微型电脑应用》2009年第5期38-40,5,共3页Microcomputer Applications

基  金:辽宁省教育厅高等学校研究项目(05L040)

摘  要:文章指出了JavaAWT事件处理的缺陷,结合命令模式给出了一个解决方案,方案中给出的模式符合开闭原理。使用的关键技术是将触发事件的组件组合到命令模式的请求者中,然后使用内部类的实例处理JavaAWT事件。A weakness in the Java AWT Event processing is pointed out,then with the command line mode,a successful method is found,which can avoid the weakness in Java AWT Event processing,and the design patterns in which is satisfying for the Open-closed principle.It's a key point to let an component that can be touched off event become a member of Invoker in Command Design Patterns,then handle the Java AWT Event by the instance of the Inner Class.

关 键 词:JavaAWT 事件 命令模式 内部类 开闭原理 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象