Smart Client Software Factory 如何订阅事件
来源:互联网 发布:淘宝闲鱼在哪里 编辑:程序博客网 时间:2024/05/16 06:31
订阅事件的过程,和发布事件几乎一样,先是在View的Presenter中右键,出现如下窗体
选择Add Event Subscription后,出现如下窗体
Event Topic Name 下拉框里出现上了我上一篇定义过的事件UpdatesAvailable,但不能在同一个Presenter中既发布又订阅同样的事件,这样是没有意义的,也是不被允许的,这里我选择StatusUpdate事件,我们接下来就可以订阅这个事件了。
Threading Option 里面是设置的事件运行的线程,UserInterface (用户界面),Publisher (发布者),Background (后台)
Event Argument Type 事件的参数类型。
完成上面这些步骤,会自动在Presenter中生成如下代码
这样,这个Presenter就可以对这个StatusUpdate事件进行响应了。 0 0
- Smart Client Software Factory 如何订阅事件
- Smart Client Software Factory 如何订阅事件
- Smart Client Software Factory 如何发布事件
- Smart Client Software Factory 如何发布事件
- Smart Client Software Factory 如何使用Command
- Smart Client Software Factory 如何使用Command
- 了解Smart Client Software Factory
- 初识Smart Client Software Factory
- Smart Client Software Factory:CAB
- Smart Client Software Factory View之间如何通信
- Smart Client Software Factory 如何使用Action Catalog
- Smart Client Software Factory View之间如何通信
- Smart Client Software Factory 如何使用Action Catalog
- Smart Client Software Factory 2010安装条件
- Smart Client Software Factory:创建登录窗口
- Smart Client Software Factory 加上Hello world
- Smart Client Software Factory 加上Hello world
- Smart Client Software Factory:扩展工具栏,加入新视图(View)
- Linux下添加新硬盘,分区及挂载
- [BZOJ1083]SCOI2005繁忙的都市|最小生成树
- servlet和spring框架使用logback.xml的区别
- cocos2dx自动添加cpp文件到android.mk中
- ajaxStart()与ajaxStop() | ajaxSend()与ajaxComplete() | ajaxError()
- Smart Client Software Factory 如何订阅事件
- 第三节 Lookup 缓存 之 重建查找高速缓存
- 回溯算法(BackTracking)--八皇后问题
- Linux时间子系统之五:低分辨率定时器的原理和实现
- 我虽力薄,但也能拼命!
- Smart Client Software Factory View之间如何通信
- oracle中的交集、并集、差集
- 一些常用软件的网络端口协议分类介绍
- centos 下 g++ 安装