什么是行动设计模式? [英] What is the Action Design Pattern?

查看:141
本文介绍了什么是行动设计模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是行动设计模式,以前我还没有听说过?我怀疑它与指挥设计模式 [维基百科]相同,但我找不到任何资源。

What is the Action Design Pattern, I haven't heard of it before? I am suspecting it is the same as the Command Design pattern [wikipedia] but I can't find any resources on it.

推荐答案

你是对的,动作模式==命令模式。您在GUI设计中更经常地听到它被称为动作模式,形式为按某些按钮,执行此操作。在代码中,按钮将与某种动作对象进行连线。

You're right, action pattern == command pattern. You hear it called the action pattern more often in GUI design, in the form "on some button pressed, perform this action". In the code the button would be wired up with an action object of some kind.

这篇关于什么是行动设计模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆