以下的代碼是如何實現(xiàn)事件處理過程的?()
class HelllWordFrame_jButton4_actionAdapter implements
ActionListener {
HelloWorldFrame adaptee;
HelloworldFrame_jButton4_actionAdapter(HelloWorldFrame adaptee){ this.adaptee=adaptee;}
public void actionPerformed(ActionEvent e){
adaptee,jButton4_actionPerfomed(e);} }
A.在事件處理類的actionPerformed函數(shù)中,調(diào)用主框架的對應(yīng)函數(shù)進行處理
B.事件處理類實現(xiàn)了ActionListener接口
C.主框架作為事件處理類的一部分,包括在事件處理類中
D.在事件處理類的構(gòu)造函數(shù)中將主框架的引用變量傳遞給事件處理類
E.在事件處理類的構(gòu)構(gòu)造函數(shù)中,創(chuàng)建一個主框架對象,并顯示該對象