20c47d280152001f185d87389a1c119f
上传用户:anders
上传日期:2022-07-15
资源大小:376k
文件大小:1k
- package phoneLeter;
- 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 addPhone ap=new addPhone(this);
- public phoneMIDlet() {
- // TODO Auto-generated constructor stub
- }
- protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
- // TODO Auto-generated method stub
- }
- protected void pauseApp() {
- // TODO Auto-generated method stub
- }
- 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"))
- {
- dis.setCurrent(pl);
- }
- else if(interfaceName.equals("addPhone"))
- {
- dis.setCurrent(ap);
- }
- }
- }