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

使用Command设计模式实现编辑器的RedoUndo
引用本文:侯军伟.使用Command设计模式实现编辑器的RedoUndo[J].科学技术与工程,2010,10(4).
作者姓名:侯军伟
作者单位:西北工业大学计算机学院,西安,710129
摘    要:设计模式是对于共性问题成功的解决方案,采用设计模式可以减少系统设计的复杂度,提高系统开发的效率1]。Command模式是常用的23种设计模式中的一种。Command模式是将动作进行抽象,将与动作有关的所有信息进行封装,从而实现调用操作的对象与知道如何实现该操作的对象解耦。RedoUndo是现代编译器中必不可少的一种工具,可以提高工作效率。详细探讨了如何使用Command模式实现RedoUndo以及各种扩展。

关 键 词:设计模式  Command模式  RedoUndo  
收稿时间:2009/10/28 0:00:00
修稿时间:2009/12/30 0:00:00

Using the Command design pattern to implement the RedoUndo function in editor
houjunwei.Using the Command design pattern to implement the RedoUndo function in editor[J].Science Technology and Engineering,2010,10(4).
Authors:houjunwei
Institution:Dept.of Compute Science/a>;Northwest Polytechnical University/a>;Xi' an 710129/a>;P.R.China
Abstract:Design pattern is that people make in order to improve software reuse an object-oriented design methodology. Command pattern is a design pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later time.This information includes the method name,the object that owns the method and values for the method parameters.RedoUndo is indispensable in modern editor as a tool that can improve work efficiency.How to use the command pattern to achieve RedoUndo and...
Keywords:design pattern  command pattern  RedoUndo  
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《科学技术与工程》浏览原始摘要信息
点击此处可从《科学技术与工程》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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