?? phonemidlet.java
字號:
package AdressList;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class PhoneMIDlet extends MIDlet {
public Display dis;
private WelcomeCanvas wc = new WelcomeCanvas(this);
private PhoneList pl = new PhoneList(this);
private AddForm af = new AddForm(this);
protected void startApp() throws MIDletStateChangeException {
dis = Display.getDisplay(this);
this.changeInterface("WelcomeCanvas");
}
public void changeInterface(String interfaceName){
if(interfaceName.equals("WelcomeCanvas")){
dis.setCurrent(wc);
}
else if(interfaceName.equals("PhoneList")){
dis.setCurrent(pl);
pl.deleteAll();
pl.loadPhones();//更新
}
else if(interfaceName.equals("AddForm")){
dis.setCurrent(af);
}
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -