英语翻译The event sources don’t need to implement an interface or extend some class to be a source.However,they must keep a list of event listeners who have registered for events from this source.The listeners are registered with the source by
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 08:12:06
英语翻译The event sources don’t need to implement an interface or extend some class to be a source.However,they must keep a list of event listeners who have registered for events from this source.The listeners are registered with the source by
英语翻译
The event sources don’t need to implement an interface or extend some class to be a source.However,they must keep a list of event listeners who have registered for events from this source.The listeners are registered with the source by calling addXXX Listener(XXX Listener) .To remove them from the list,call removeXXX Listener(XXX Listener).XXX is replaced by the name of the event type.Generally speaking,event sources can be unicast (only one listener allowed) or multicast (multiple listeners allowed).Within AWT and Swing,all event sources are multicast.To make things easier,a specialized Multicaster exists,java.awt.AWTEventMulticaster.The AWTEventMulticaster provides an efficient and thread-safe multicast event dispatching for the AWT events defined in the java.awt.event package [JLS].
大哥大姐们,可以用软件翻译,但是希望你们能帮我整理成通顺的句子,别这么不通顺就贴出来了....有重赏噢
英语翻译The event sources don’t need to implement an interface or extend some class to be a source.However,they must keep a list of event listeners who have registered for events from this source.The listeners are registered with the source by
一旦来源并不需要实施一个接口或延长某些阶层的一个根源.然而,他们必须保持名单事件听众已经登记的活动必须从这个源头.听众都登记在案,从源头致电addxxx听众(三十听众) .以消除他们从名单上,呼叫removexxx听众(三十听众) . XXX为取代的名字,这一事件type.generally上说,事件源可以单播(只有一位听众允许)或组播(多听众获准) .内部awt和回旋,所有事件源组播.为了使事情更加容易,一个专门multicaster存在, java.awt.awteventmulticaster .该awteventmulticaster提供了一个高效和线程安全组播活动调度为awt事件定义在java.awt.event包[ jls ] .