文选流氓 发表于 2003-2-5 12:03

1-1-4-8 有关peer

发信人: KHP (人之初), 信区: Java      
标题: Re: 求教--有关peer
发信站: BBS 水木清华站 (Sat Jun 19 23:28:59 1999)

【 在 rakehelll (流浪的心) 的大作中提到: 】
:    JDK中有一个包java.awt.peer,请问这个包中的类(接口)都
: 有什么作用?
:   比如ComponentPeer,它用什么作用,与Component有什么关系?
:   每个类/接口都有以下的说明:
:      The peer interfaces are intended only for use in porting
:the AWT. They are not intended for use by application
:developers, and developers should not implement peers
:nor invoke any of the peer methods directly on the peer
:instances.
:   请诸位高手指教,不胜感激。

这是 AWT 的本地实现在 JDK 中的接口,其实都已经封装到那些 AWT
组件了。
页: [1]
查看完整版本: 1-1-4-8 有关peer