⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phonebookmidlet.java

📁 简明的操作界面,强大的记录功能
💻 JAVA
字号:
package com.north.phonebook;

import com.north.phonebook.model.*;
import com.north.phonebook.ui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

/*
 * Created on 2004-6-20
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author P2800
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class PhoneBookMIDlet extends MIDlet
{

    private UIController uicontroller;
    private Model model;

    /**
     * @return Returns the model.
     */
    public Model getModel()
    {
        return model;
    }

    /*
     * (non-Javadoc)
     * 
     * @see javax.microedition.midlet.MIDlet#startApp()
     */
    protected void startApp() throws MIDletStateChangeException
    {
        // TODO Auto-generated method stub

        try
        {
            uicontroller = new UIController(PhoneBookMIDlet.this);
            model = new Model();
            uicontroller.init(model);
        } catch (ApplicationException e)
        {
            System.out.println("Error when initial the record Store");
        }

    }

    /*
     * (non-Javadoc)
     * 
     * @see javax.microedition.midlet.MIDlet#pauseApp()
     */
    protected void pauseApp()
    {
        // TODO Auto-generated method stub

    }

    /*
     * (non-Javadoc)
     * 
     * @see javax.microedition.midlet.MIDlet#destroyApp(boolean)
     */
    protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    {
        // TODO Auto-generated method stub

    }

    /**
     * @return Returns the uicontroller.
     */
    public UIController getUicontroller()
    {
        return uicontroller;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -