检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张跃平[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.229