?? phonemidlet.java
字號:
/**源代碼由程序員聯合開發網(www.pudn.com)會員"周潤發"收集、整理、重新編輯
*Email: ql_chuanzhang@tom.com
*QQ號:1103798882
*歡迎大家與我聯系互相交流學習
**/
package rms_cn;
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 {
// TODO Auto-generated method stub
dis = Display.getDisplay(this);
this.changeInterface("Welcomecanvas");
}
public void changeInterface(String interfaceName){
if(interfaceName.equals("Welcomecanvas")){
dis.setCurrent(wc);
}
else if(interfaceName.equals("PhoneList")){
pl.deleteAll();
dis.setCurrent(pl);
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 + -