?? phonebookmidlet.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 + -