?? basebutton.java
字號(hào):
package myoven.button;import java.util.*;public class BaseButton { Vector Observers; //預(yù)定者集合 public BaseButton() { Observers=new Vector(); } public void pressed(){//通知所有預(yù)定者 for(int i=0;i<Observers.size();i++){ ((ButtonObserver)Observers.elementAt(i)).recieveButtonNotification(); } } public void subscribe(Object obt){//預(yù)定 Observers.add(obt); } public void unsubscribe(Object obt){//撤消預(yù)定 Observers.remove(obt); }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -