📄 runtestform.java
字号:
import javax.microedition.lcdui.*;
public class RunTestForm extends Form implements CommandListener {
TestIndex main;
Gauge progress;
RunTestForm(TestIndex main, String name, int nIterations) {
super(name);
this.main = main;
if (nIterations != 0) {
progress = new Gauge("Running...", false, nIterations, 0);
append(progress);
}
addCommand(TestIndex.STOP_CMD);
setCommandListener(this);
Display.getDisplay(main).setCurrent(this);
}
public void commandAction(Command c, Displayable d)
{
if (c == TestIndex.STOP_CMD) {
main.stopped = true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -