?? resultform.java
字號:
/*
* ResultForm.java
*
* Created on 2006年8月30日, 下午7:56
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package cn.edu.nwpu.MobileCampusClinet;
import java.util.Vector;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
/**
*
* @author NickJava
*/
public class ResultForm extends Form implements CommandListener{
private Vector electiveArray;
private String userName;
private Command backCommand;
private Display display;
private Displayable displayable;
private MIDlet midlet;
private ElectiveUI electiveUI;
/** Creates a new instance of ResultForm */
public ResultForm(MIDlet midlet,Displayable displayable, Vector electiveArray , String userName) {
super("操作結果");
this.midlet=midlet;
this.display=Display.getDisplay(midlet);
this.displayable=displayable;
this.electiveArray=electiveArray;
this.userName=userName;
electiveUI = new ElectiveUI(midlet,displayable,electiveArray,userName);
backCommand = new Command("返回",Command.BACK,5);
addCommand(backCommand);
setCommandListener(this);
}
public void commandAction(Command c,Displayable d){
if(c==backCommand){
display.setCurrent(electiveUI);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -