哪位大哥大姐帮我翻译下这段短文,谢谢谢!!! 5

FactoryMethod(seepage21):TheAWTEventMulticasterprovidesstaticfactorymethodstocreateac... Factory Method (see page 21): The AWTEventMulticaster provides static factory methods to create a chain of event listeners of the appropriate type. It has overloaded methods for registering (add) and de-registering (remove) each type of event listener in the java.awt.event package. For example, public static ActionListener add(ActionListener a, ActionListener b). The return type of the method is a listener of the type just registered. The implementation of the method is such that the returned object can simply be the listener that was registered, but most of the time it is a new AWTEventMulticaster instance that has a reference to the old AWTEventMulticaster and the new listener instance. 展开
 我来答
785017770
2008-03-17
知道答主
回答量:16
采纳率:0%
帮助的人:8.6万
展开全部
工厂方法(参见第21页) : AWTEventMulticaster提供静态工厂方法创造事件链适当的类型的听众。 它超载了登记(增加)和注销登记的(去除)事件听众的每种类型方法java.awt.event包裹的。 例如,公开静态ActionListener增加(ActionListener a, ActionListener b)。 方法的回归类型是登记的类型的听众。 方法的实施是这样返回的对象可能是登记的听众,但是大多时间它是有在老AWTEventMulticaster和新的听众事例的参考的一个新的AWTEventMulticaster事例
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式