
哪位大哥大姐帮我翻译下这段短文,谢谢谢!!! 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.
展开
展开全部
工厂方法(参见第21页) : AWTEventMulticaster提供静态工厂方法创造事件链适当的类型的听众。 它超载了登记(增加)和注销登记的(去除)事件听众的每种类型方法java.awt.event包裹的。 例如,公开静态ActionListener增加(ActionListener a, ActionListener b)。 方法的回归类型是登记的类型的听众。 方法的实施是这样返回的对象可能是登记的听众,但是大多时间它是有在老AWTEventMulticaster和新的听众事例的参考的一个新的AWTEventMulticaster事例
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询