Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:关于Mediator模式的一点想法 [Re:floater]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-12-08 08:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
floater wrote:
When you click a button, the button needs to tell the mediator, so it would be better to have a reference in the button, otherwise any look up will introduce other dependencies.

我觉得是 事件来引用 mediator,不是button本身, 这种调用 用 command 不是很好吗,至于command在调用什么模式就随便了,不知对不?



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"


话题树型展开
人气 标题 作者 字数 发贴时间
16408 关于Mediator模式的一点想法 jameszhang 76 2004-12-03 15:46
13902 Re:关于Mediator模式的一点想法 floater 413 2004-12-03 23:31
13970 Re:关于Mediator模式的一点想法 WeiterWay 133 2004-12-07 10:39
13908 Re:关于Mediator模式的一点想法 jameszhang 230 2004-12-07 10:53
13953 Re:关于Mediator模式的一点想法 WeiterWay 111 2004-12-07 10:57
14124 Re:关于Mediator模式的一点想法 yamakasy 274 2004-12-07 12:16
13894 Re:关于Mediator模式的一点想法 jameszhang 274 2004-12-07 12:22
13851 Re:关于Mediator模式的一点想法 WeiterWay 94 2004-12-07 11:00
14014 Re:关于Mediator模式的一点想法 yamakasy 204 2004-12-07 12:19
13849 Re:关于Mediator模式的一点想法 WeiterWay 192 2004-12-07 12:43
13870 Re:关于Mediator模式的一点想法 floater 298 2004-12-07 23:37
13862 Re:关于Mediator模式的一点想法 jameszhang 298 2004-12-08 08:01
13739 Re:关于Mediator模式的一点想法 floater 118 2004-12-08 23:47
15048 Re:关于Mediator模式的一点想法 zyzhang 685 2004-12-20 21:05

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923