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

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:关于command的模式中Invoker对象? [Re:jameszhang]
WeiterWay





发贴: 25
积分: 0
于 2004-12-03 15:30 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
I think your DrawPane is the Invoker here. It is a command manager or command aggregator. Your implementation has one drawback: It is not a good idea to let command object implements shap object(the receiver or response object). this way the response object's interface is exposed to client (tight-coupled). it is better to embed the implementation details for command object, or even further maybe we can use bridge pattern to externalize the command receiver's implementation.

WeiterWay edited on 2004-12-03 15:38


话题树型展开
人气 标题 作者 字数 发贴时间
12341 关于command的模式中Invoker对象? jameszhang 69 2004-12-01 15:40
10417 Re:关于command的模式中Invoker对象? wes109 654 2004-12-01 18:30
11007 Re:关于command的模式中Invoker对象? jameszhang 256 2004-12-02 08:29
10361 Re:关于command的模式中Invoker对象? jameszhang 122 2004-12-01 20:17
10311 Re:关于command的模式中Invoker对象? floater 415 2004-12-02 00:01
10274 Re:关于command的模式中Invoker对象? floater 175 2004-12-02 23:14
10253 Re:关于command的模式中Invoker对象? wes109 339 2004-12-03 09:10
10146 Re:关于command的模式中Invoker对象? jameszhang 1581 2004-12-03 14:17
10261 Re:关于command的模式中Invoker对象? jameszhang 14 2004-12-03 14:28
10528 Re:关于command的模式中Invoker对象? WeiterWay 478 2004-12-03 15:30
12679 Re:关于command的模式中Invoker对象? jameszhang 527 2004-12-03 16:02

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