具有後續類 -調用車主類與聽衆
public class GUIclass1 extends org.eclipse.swt.widgets.Composite {
private void initGUI() {
{
// The setting of the open file button.
openButton = new Button(this, SWT.PUSH | SWT.CENTER);
openButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) {
foo() ;
}
});
}
}
public void foo() {
// implementation ..
}
}
,你可以在addSelectionListener
內看到有一個呼召方法foo()
。
我的問題是 - 我應該寫哪個參考作爲前綴foo()
以便知道哪些類foo()
與哪些類相關。
我試過super().foo()
沒有成功。