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

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:Decorator and Proxy 的区别 [Re:jigsaw]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2005-06-25 22:28 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
jigsaw wrote:
我说2句。。。怕说错了。。。说错了表打我

proxy做的事情很少,一般就是是延迟,缓存

decorator则是在别人的基础上,作更多的修饰

举例来说,proxy可以在显示大的图片的时候用(不好意思,举烂的例子了)
decorator则是。。比如swing里面,要给一个面板加滚动条,用的就是decorator模式

我可能跟你是一个老师教的!呵呵



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

Mahatma Gandhi"


话题树型展开
人气 标题 作者 字数 发贴时间
23777 Decorator and Proxy 的区别 MoutainHigh 103 2005-03-25 17:15
17180 Re:Decorator and Proxy 的区别 jigsaw 166 2005-03-28 14:09
16999 Re:Decorator and Proxy 的区别 jameszhang 222 2005-06-25 22:28
19413 Re:Decorator and Proxy 的区别 MoutainHigh 91 2005-03-29 11:27
17200 Re:Decorator and Proxy 的区别 hitaco 101 2005-05-24 15:55
17462 Re:Decorator and Proxy 的区别 dissip 385 2005-04-13 17:24
17241 Re:Decorator and Proxy 的区别 popplelee 39 2005-04-16 21:02
17600 Re:Decorator and Proxy 的区别 njluz 362 2005-07-08 14:11
18045 Re:Decorator and Proxy 的区别 ranchgirl 405 2005-12-19 01:12

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