📄 personalinfoui.java
字号:
/*
* PersonalInfoUI.java
*
* Created on 2006年9月2日, 上午2:55
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package cn.edu.nwpu.MobileCampusClinet;
import cn.edu.nwpu.MobileCampusServer.UserBean;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
/**
*
* @author NickJava
*/
public class PersonalInfoUI extends Form implements CommandListener {
private UserBean user;
private Command backCommand;
private Display display;
private Displayable displayable;
private MIDlet midlet;
FunctionList functionList;
/** Creates a new instance of PersonalInfoUI */
public PersonalInfoUI(String title,UserBean user,MIDlet midlet,Displayable displayable) {
super(title);
this.midlet=midlet;
this.display=Display.getDisplay(midlet);
this.displayable=displayable;
this.user=user;
functionList = new FunctionList(user,midlet,displayable);
backCommand = new Command("返回",Command.BACK,5);
addCommand(backCommand);
setCommandListener(this);
}
public void commandAction(Command c,Displayable d){
if(c==backCommand){
display.setCurrent(functionList);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -