📄 phonebookmidlet.java
字号:
package com.north.phonebook;
import com.north.phonebook.model.*;
import com.north.phonebook.model.Model;
import com.north.phonebook.ui.*;
import com.north.phonebook.ui.UIController;
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 + -